Skip to main content

expanso-cli config get

expanso-cli config get​

Get the current configuration

Synopsis​

Retrieve and display the current configuration from the configured endpoint.

What This Shows:​

The complete runtime configuration, including: • API server settings (ports, timeouts, authentication) • Scheduler configuration (intervals, worker counts) • Node manager settings • Logging configuration • Telemetry and metrics settings • Resource limits and quotas

When To Use This:​

• Verify settings after deployment • Understand default behavior and limits • Debug unexpected behavior • Document current configuration for reference • Compare configurations across environments

Configuration Sources:​

This command shows the effective configuration (final merged values). To see where each value came from (CLI flags, env vars, config file, etc.), use 'config explain' instead.

Output Formats:​

• yaml: Human-readable, great for documentation (default) • json: Machine-readable, great for parsing with jq

Note: This retrieves configuration from the configured endpoint, not your CLI profile settings. For profile/connection settings, use 'profile current' instead.

expanso-cli config get [flags]

Examples​

# Get configuration as YAML
expanso-cli config get

# Get configuration as JSON
expanso-cli config get --format json

# Save configuration to file for reference
expanso-cli config get --format yaml > prod-config.yaml

# Extract specific value with jq
expanso-cli config get --format json | jq '.scheduler.evaluation_interval'

# Compare configurations between environments
diff `<(expanso-cli config get -p prod)` `<(expanso-cli config get -p staging)`

Options​

-f, --format {|json|yaml} Output format
-h, --help help for get
--no-style Disable colors and styling
--pretty Pretty print the output

Options inherited from parent commands​

--api-key string API key for authentication (e.g., exp_ak_...). Env: EXPANSO_CLI_AUTH_API_KEY (preferred; flag values show in ps output)
-e, --endpoint string API endpoint URL
-k, --insecure Skip TLS certificate verification
-p, --profile string Profile to use for configuration
--timeout string Request timeout duration
-v, --verbose Enable verbose logging

SEE ALSO​