Skip to content

fm config

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

fm config

text
Manage fm configuration including credentials, regions, and contexts.

Configuration is stored in ~/.fm/config.yaml

Usage:
  fm config [command]

Available Commands:
  get-contexts List all contexts
  init         Initialize configuration
  set          Set a configuration value
  show         Show current configuration
  use-context  Switch to a different context

Flags:
  -h, --help   help for config

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

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

fm config get-contexts

text
List all available configuration contexts.

Usage:
  fm config get-contexts [flags]

Flags:
  -h, --help   help for get-contexts

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

fm config init

text
Initialize the fm configuration file with default values.

This command will create a new configuration file at ~/.fm/config.yaml
and prompt you for your API credentials.

Usage:
  fm config init [flags]

Flags:
  -h, --help   help for init

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

fm config set

text
Set a configuration value.

Available keys:
  api_endpoint    The API endpoint URL
  region          Default region
  api_key         API key for authentication
  output_format   Default output format (table, json, yaml)

Usage:
  fm config set <key> <value> [flags]

Flags:
  -h, --help   help for set

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

fm config show

text
Display the current fm configuration.

Usage:
  fm config show [flags]

Flags:
  -h, --help   help for show

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

fm config use-context

text
Switch the current context to use different credentials or endpoints.

Usage:
  fm config use-context <name> [flags]

Flags:
  -h, --help   help for use-context

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