Home
/
Command Line
/
templates edit

templates edit

templates edit

Edit the metadata of a template by name.

Usage

coder templates edit [flags] <template>

Options

--allow-user-autostart

Typebool
Defaulttrue

Allow users to configure autostart for workspaces on this template. This can only be disabled in enterprise.

--allow-user-autostop

Typebool
Defaulttrue

Allow users to customize the autostop TTL for workspaces on this template. This can only be disabled in enterprise.

--allow-user-cancel-workspace-jobs

Typebool
Defaulttrue

Allow users to cancel in-progress workspace jobs.

--default-ttl

Typeduration

Edit the template default time before shutdown - workspaces created from this template default to this value.

--description

Typestring

Edit the template description.

--display-name

Typestring

Edit the template display name.

--failure-ttl

Typeduration
Default0h

Specify a failure TTL for workspaces created from this template. This licensed feature's default is 0h (off).

--icon

Typestring

Edit the template icon path.

--inactivity-ttl

Typeduration
Default0h

Specify an inactivity TTL for workspaces created from this template. This licensed feature's default is 0h (off).

--max-ttl

Typeduration

Edit the template maximum time before shutdown - workspaces created from this template must shutdown within the given duration after starting. This is an enterprise-only feature.

--name

Typestring

Edit the template name.

-y, --yes

Typebool

Bypass prompts.

See an opportunity to improve our docs? Make an edit.
On this page