mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat(cli): add --agents-allowed to template commands (#27517)
Relates to CODAGT-713 Depends on #27515 This adds `--agents-allowed` to `coder templates create` and `coder templates edit`. Template creation defaults the option to true, matching the per-template API and database default, while template editing only changes the value when the flag is explicitly supplied so unrelated edits preserve the existing setting. The generated CLI help and reference documentation include the new option. #27518 updates the Coder Agents platform controls documentation to describe the completed per-template model.
This commit is contained in:
@@ -10,6 +10,9 @@ OPTIONS:
|
||||
-O, --org string, $CODER_ORGANIZATION
|
||||
Select which organization (uuid or name) to use.
|
||||
|
||||
--agents-allowed bool (default: true)
|
||||
Allow Coder Agents to create workspaces using this template.
|
||||
|
||||
--default-ttl duration (default: 24h)
|
||||
Specify a default TTL for workspaces created from this template. It is
|
||||
the default time before shutdown - workspaces created from this
|
||||
|
||||
@@ -14,6 +14,9 @@ OPTIONS:
|
||||
template will have their shutdown time bumped by this value when
|
||||
activity is detected. Maps to "Activity bump" in the UI.
|
||||
|
||||
--agents-allowed bool (default: true)
|
||||
Allow Coder Agents to create workspaces using this template.
|
||||
|
||||
--allow-user-autostart bool (default: true)
|
||||
Allow users to configure autostart for workspaces on this template.
|
||||
This can only be disabled in enterprise.
|
||||
|
||||
Reference in New Issue
Block a user