Skip to content

fm secrets ​

Reference for the fm secrets command group (auto-generated from fm secrets --help).

fm secrets ​

text
Manage secrets stored in the Frostmoln secrets manager.

Usage:
  fm secrets [command]

Aliases:
  secrets, secret

Available Commands:
  create      Create a secret
  delete      Delete a secret
  get         Get secret details
  get-version Get a specific secret version
  list        List secrets
  recover     Recover a deleted secret
  update      Update a secret
  versions    List secret versions

Flags:
  -h, --help[=true|false]   help for secrets

Global Flags:
      --config string           config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
  -d, --debug[=true|false]      enable debug/verbose output
      --no-color[=true|false]   disable colored output
  -o, --output string           output format: table, json, yaml, wide (default "table")
  -q, --quiet[=true|false]      suppress non-essential output
      --tenant string           tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)

Use "fm secrets [command] --help" for more information about a command.

fm secrets create ​

text
Create a new secret.

Examples:
  fm secrets create --name my-secret --value "s3cr3t"
  fm secrets create --name db-password --value "pass123" --content-type text/plain --description "Database password"
  fm secrets create --name api-creds --value '{"key":"val"}' --content-type application/json --tags env=prod,team=backend

Usage:
  fm secrets create [flags]

Flags:
      --content-type string   content type (e.g., text/plain, application/json)
      --description string    secret description
  -h, --help[=true|false]     help for create
      --max-versions int      maximum number of versions to retain
      --name string           secret name (required)
      --recovery-window int   recovery window in days after deletion
      --tags strings          tags in key=value format (comma-separated)
      --value string          secret value (required)

Global Flags:
      --config string           config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
  -d, --debug[=true|false]      enable debug/verbose output
      --no-color[=true|false]   disable colored output
  -o, --output string           output format: table, json, yaml, wide (default "table")
  -q, --quiet[=true|false]      suppress non-essential output
      --tenant string           tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)

fm secrets delete ​

text
Soft-delete a secret. It can be recovered within the recovery window.

<secret> is an id (sec_..., as in the ID column of 'fm secrets list') or a
name. A name is resolved through the secrets list, so it also needs permission
to list secrets; an id does not. A secret whose name looks like an id must be
given by its id.

Usage:
  fm secrets delete <secret> [flags]

Flags:
      --force[=true|false]   skip confirmation prompt
  -h, --help[=true|false]    help for delete

Global Flags:
      --config string           config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
  -d, --debug[=true|false]      enable debug/verbose output
      --no-color[=true|false]   disable colored output
  -o, --output string           output format: table, json, yaml, wide (default "table")
  -q, --quiet[=true|false]      suppress non-essential output
      --tenant string           tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)

fm secrets get ​

text
Get detailed information about a specific secret, including its value.

<secret> is an id (sec_..., as in the ID column of 'fm secrets list') or a
name. A name is resolved through the secrets list, so it also needs permission
to list secrets; an id does not. A secret whose name looks like an id must be
given by its id.

Usage:
  fm secrets get <secret> [flags]

Flags:
  -h, --help[=true|false]         help for get
      --show-value[=true|false]   reveal the secret value (masked by default)

Global Flags:
      --config string           config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
  -d, --debug[=true|false]      enable debug/verbose output
      --no-color[=true|false]   disable colored output
  -o, --output string           output format: table, json, yaml, wide (default "table")
  -q, --quiet[=true|false]      suppress non-essential output
      --tenant string           tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)

fm secrets get-version ​

text
Get the value a secret had at a specific version.

<secret> is an id (sec_..., as in the ID column of 'fm secrets list') or a
name. A name is resolved through the secrets list, so it also needs permission
to list secrets; an id does not. A secret whose name looks like an id must be
given by its id.

Usage:
  fm secrets get-version <secret> <version> [flags]

Flags:
  -h, --help[=true|false]         help for get-version
      --show-value[=true|false]   reveal the secret value (masked by default)

Global Flags:
      --config string           config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
  -d, --debug[=true|false]      enable debug/verbose output
      --no-color[=true|false]   disable colored output
  -o, --output string           output format: table, json, yaml, wide (default "table")
  -q, --quiet[=true|false]      suppress non-essential output
      --tenant string           tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)

fm secrets list ​

text
List all secrets for the current tenant.

Usage:
  fm secrets list [flags]

Flags:
  -h, --help[=true|false]   help for list

Global Flags:
      --config string           config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
  -d, --debug[=true|false]      enable debug/verbose output
      --no-color[=true|false]   disable colored output
  -o, --output string           output format: table, json, yaml, wide (default "table")
  -q, --quiet[=true|false]      suppress non-essential output
      --tenant string           tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)

fm secrets recover ​

text
Recover a soft-deleted secret that is still within its recovery window.

<secret> is an id (sec_..., as in the ID column of 'fm secrets list') or a
name. A name is resolved through the secrets list, so it also needs permission
to list secrets; an id does not. A secret whose name looks like an id must be
given by its id.

Usage:
  fm secrets recover <secret> [flags]

Flags:
  -h, --help[=true|false]   help for recover

Global Flags:
      --config string           config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
  -d, --debug[=true|false]      enable debug/verbose output
      --no-color[=true|false]   disable colored output
  -o, --output string           output format: table, json, yaml, wide (default "table")
  -q, --quiet[=true|false]      suppress non-essential output
      --tenant string           tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)

fm secrets update ​

text
Update an existing secret's value, description, or tags.

--tags REPLACES the secret's tags with exactly the given set, and --clear-tags
removes them all. Without either the tags are left as they are. An empty --tags
is refused rather than read as "remove every tag": an unset variable in a script
(--tags "$TAGS") must not wipe them.

<secret> is an id (sec_..., as in the ID column of 'fm secrets list') or a
name. A name is resolved through the secrets list, so it also needs permission
to list secrets; an id does not. A secret whose name looks like an id must be
given by its id.

Examples:
  fm secrets update <secret> --value "new-value"
  fm secrets update <secret> --description "Updated description"
  fm secrets update <secret> --tags env=staging,team=platform
  fm secrets update <secret> --clear-tags

Usage:
  fm secrets update <secret> [flags]

Flags:
      --clear-tags[=true|false]   remove ALL tags (mutually exclusive with --tags)
      --description string        new description
  -h, --help[=true|false]         help for update
      --tags strings              replace the tags with these, in key=value format (comma-separated)
      --value string              new secret value

Global Flags:
      --config string           config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
  -d, --debug[=true|false]      enable debug/verbose output
      --no-color[=true|false]   disable colored output
  -o, --output string           output format: table, json, yaml, wide (default "table")
  -q, --quiet[=true|false]      suppress non-essential output
      --tenant string           tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)

fm secrets versions ​

text
List the version history of a secret.

<secret> is an id (sec_..., as in the ID column of 'fm secrets list') or a
name. A name is resolved through the secrets list, so it also needs permission
to list secrets; an id does not. A secret whose name looks like an id must be
given by its id.

Usage:
  fm secrets versions <secret> [flags]

Flags:
  -h, --help[=true|false]   help for versions

Global Flags:
      --config string           config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
  -d, --debug[=true|false]      enable debug/verbose output
      --no-color[=true|false]   disable colored output
  -o, --output string           output format: table, json, yaml, wide (default "table")
  -q, --quiet[=true|false]      suppress non-essential output
      --tenant string           tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)