Cobo CLI provides several global options that can be used with any command to customize its behavior. These options allow you to control the environment, authentication method, and other settings for your CLI operations.Documentation Index
Fetch the complete documentation index at: https://cobo.com/developers/llms.txt
Use this file to discover all available pages before exploring further.
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)
