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, or the file named by --config or $FM_CONFIG.
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[=true|false] help for config
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 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[=true|false] help for get-contexts
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 config init
text
Initialize the fm configuration file with default values.
This command will create a new configuration file at ~/.fm/config.yaml
(or at --config / $FM_CONFIG)
and prompt you for your API credentials.
Usage:
fm config init [flags]
Flags:
-h, --help[=true|false] help for init
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 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[=true|false] help for set
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 config show
text
Display the current fm configuration.
Usage:
fm config show [flags]
Flags:
-h, --help[=true|false] help for show
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 config use-context
text
Switch the current context to use different credentials or endpoints.
Usage:
fm config use-context <name> [flags]
Flags:
-h, --help[=true|false] help for use-context
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)