Skip to main content

expanso-cli profile current

expanso-cli profile current​

Display the current profile

Synopsis​

Display detailed information about the currently selected profile.

What This Shows:​

• Profile name • Endpoint URL (control plane or edge node) • Authentication configuration • TLS/SSL settings • Timeout configuration • Profile metadata (description, last updated)

Why Check Current Profile:​

• Verify which environment you're connected to before running commands • Confirm profile settings before critical operations • Debug connection issues • Check if profile was overridden by environment variable

Environment Override:​

If EXPANSO_CLI_PROFILE environment variable is set, it overrides the selected profile. This command shows if the current profile came from the environment or from 'profile select'.

Output Formats:​

Use --format flag to get machine-readable output: • json: For parsing with jq or other tools • yaml: For readability or config file creation

expanso-cli profile current [flags]

Options​

-f, --format {|json|yaml} Output format
-h, --help help for current
--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​