Skip to main content
Manage CLI configuration using the config command. View and modify settings, manage configuration profiles, and configure default values for commands.

Command Syntax

Subcommands

show

Show current configuration. Syntax:
Examples:
Expected Output:
Exit Codes:
  • 0 - Success

set

Set a configuration value. Syntax:
Arguments:
  • KEY - Configuration key (required)
  • VALUE - Configuration value (required)
Examples:
Expected Output:
Exit Codes:
  • 0 - Success
  • 2 - Invalid key or value

get

Get a configuration value. Syntax:
Arguments:
  • KEY - Configuration key (required)
Examples:
Expected Output:
Exit Codes:
  • 0 - Success
  • 2 - Key not found

path

Show configuration file path. Syntax:
Examples:
Expected Output:
Exit Codes:
  • 0 - Success

init

Initialize configuration (interactive setup). Syntax:
Examples:
Expected Output:
Exit Codes:
  • 0 - Success

profiles

Manage configuration profiles.

profiles list

List all configuration profiles. Syntax:
Examples:
Expected Output:

profiles create

Create a new configuration profile. Syntax:
Arguments:
  • PROFILE_NAME - Profile name (required)
Examples:
Expected Output:

profiles use

Switch to a configuration profile. Syntax:
Arguments:
  • PROFILE_NAME - Profile name (required)
Examples:
Expected Output:

profiles delete

Delete a configuration profile. Syntax:
Arguments:
  • PROFILE_NAME - Profile name (required)
Examples:
Expected Output:

Configuration Keys

Common configuration keys:
  • default_template - Default template for sandbox creation
  • default_timeout - Default timeout in seconds
  • output_format - Default output format (table, json, plain)
  • base_url - API base URL (default: https://api.hopx.dev)

Shell Scripting Examples

Configure for Different Environments

Use Profile for Single Command

Next Steps