Global options should be placed before the specific command you want to run. For example,
-e prod
should come before get /wallets
.Available global options
Environment selection (-e, —env)
The-e
or --env
option allows you to override the default environment for a specific command.
dev
: 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.
apikey
: API keyuser
: Cobo Portal accountorg
: Org Access Token
Debug mode (—enable-debug)
The--enable-debug
flag enables debug mode, which provides verbose logging for troubleshooting purposes.
Custom configuration file (—config-file)
The--config-file
option allows you to specify a custom configuration file instead of the default one.
~/.cobo/config.toml
).
Custom API specification file (—spec)
If you have a custom OpenAPI specification file, you can use it with Cobo CLI. This is useful for testing or working with different versions of the API. To use a custom specification file:Using a custom specification file will override the default OpenAPI specification for that command only. It won’t affect other commands or future uses of Cobo CLI.
Combining global options
You can combine multiple global options in a single command:- Use the production environment.
- Authenticate using your Cobo Portal account.
- Enable debug mode for verbose logging.
- Execute the GET request to retrieve wallet information.
Configuration precedence
The Cobo CLI follows the following order of precedence when determining which settings to use:- Command line options (highest priority)
- Configuration file settings
- Default values (lowest priority)
Feel free to share your feedback to improve our documentation!