Available Global Options
Environment Selection (-e, —env)
The-e or --env option allows you to override the default environment for a specific command.
Usage:
sandbox: Sandbox environmentdev: Development environmentprod: Production environment
Authentication Method (-a, —auth)
The-a or --auth option allows you to override the default authentication method for a specific command.
Usage:
apikey: Use API key authenticationuser: Use user-based authenticationorg: Use organization-based authentication
Debug Mode (—enable-debug)
The--enable-debug flag enables debug mode, which provides verbose logging for troubleshooting purposes.
Usage:
Custom Environment File (—env-file)
The--env-file option allows you to specify a custom path for the .env file containing your environment variables.
Usage:
Custom API Specification (—spec)
The--spec option allows you to specify a custom OpenAPI specification file for the Cobo API.
Usage:
Combining Global Options
You can combine multiple global options in a single command:- Use the production environment
- Authenticate using user-based authentication
- Enable debug mode for verbose logging
- Use a custom API specification file
- Execute the GET request to retrieve wallet information
Configuration Precedence
The Cobo CLI follows this order of precedence when determining which settings to use:- Command-line options (highest priority)
- Environment variables
- Configuration file settings
- Default values (lowest priority)
Global options should be placed before the specific command you want to run. For example,
-e sandbox should come before get /wallets.