--- # Code generated by make gen. DO NOT EDIT. title: "`coder secret list`" description: "List secrets, or show one by name." --- List secrets, or show one by name Aliases: * ls ## Usage ```console coder secret list [flags] [name] ``` ## Description ```console Secret values are omitted from the output. When listing all secrets inside a workspace, or with --workspace or --build-id, the workspace build's secrets are included and the source and "replaced by" columns are shown by default. If a build secret uses the same env var or file as a user secret, the user secret is not delivered on that target and its "replaced by" column names the build secret, for example "env: build/github-token". ``` ## Options ### --workspace | Property | Value | |----------|---------------------| | Type | string | Include the secrets of this workspace's latest build. Inside a workspace, the default is the build the workspace agent was started from. ### --build-id | Property | Value | |----------|---------------------| | Type | string | Include the secrets of this workspace build. Takes precedence over --workspace. ### -c, --column | Property | Value | |----------|--------------------------------------------------------------------------------------------------------| | Type | [created\|name\|updated\|source\|env\|file\|enabled\|replaced by\|ephemeral\|description] | | Default | name,created,updated,env,file,enabled,description | Columns to display in table output. ### -o, --output | Property | Value | |----------|--------------------------| | Type | table\|json | | Default | table | Output format.