Skip to main content
This document provides a detailed reference for all commands supported by the Cobo CLI tool. Each command is explained with its purpose, options, and usage examples.

Global Options

The following options can be used with any command:
  • -e, --env: Override the environment for this command. Choices are [development, sandbox, production].
  • -a, --auth: Override the authentication method for this command. Choices are [apikey, oauth].
  • --enable-debug: Enable debug mode for verbose logging.
  • --env-file: Specify the path to the dotenv file. Default is ~/.cobo/.env.
  • --spec: Path to a custom OpenAPI specification file.

Main Commands

version

Display the current version of the Cobo CLI tool. Usage:

config

Manage CLI configuration settings. Subcommands:
  • set <key> <value>: Set a configuration value.
  • get <key>: Get a configuration value.
  • list: List all configuration values.
  • delete <key>: Delete a configuration value.
Usage:

login

Perform user or organization login operations. Options:
  • --user, -u: Login action associated with user dimension (default).
  • --org, -o: Login action associated with organization dimension.
  • --org-uuid: Specify the organization ID used to retrieve the token (required for organization login).
  • --refresh-token: Refresh the existing token instead of generating a new one.
Usage:

logout

Perform user or organization logout operations. Options:
  • --user, -u: Logout action associated with user dimension.
  • --org, -o: Logout action associated with organization dimension.
  • --all, -a: Logout action for both user and organization (default).
Usage:

keys

Commands to generate and manage API/APP keys. Subcommands:
  • generate: Generate a new API/APP key pair.
Options for generate:
  • --key-type: Type of key to generate (API or APP). Default is API.
  • --alg: Specify the key generation algorithm. Default is ed25519.
  • --force: Force to replace existing keys.
Usage:

app

Commands to create, run, publish, and manage Cobo applications. Subcommands:
  • init: Create a new Cobo application from template.
  • run: Run a Cobo application.
  • publish: Publish a Cobo application.
  • update: Update a Cobo application.
  • status: Check the status of a Cobo application.
Usage:

open

Open a specific Cobo portal page in the default web browser. Arguments:
  • target: The page to open. Choices are [portal, dashboard, wallets, custodial, mpc, scw, exchange, developer, apps, settings, guides, pricing, approval]. Default is portal.
Usage:

doc

Open Cobo documentation or display API operation information. Arguments:
  • topic_or_path: The documentation topic or API path to open/display.
Options:
  • -u, --update: Update the OpenAPI specification.
Usage:

env

Set or view the current environment. Arguments:
  • environment: The environment to set. Choices are [development, sandbox, production].
Usage:

auth

Set or view the default authentication method. Arguments:
  • method: The authentication method to set. Choices are [apikey, oauth].
Usage:

API Commands

get

Make a GET request to a Cobo API endpoint. Usage:

post

Make a POST request to a Cobo API endpoint. Usage:

put

Make a PUT request to a Cobo API endpoint. Usage:

delete

Make a DELETE request to a Cobo API endpoint. Usage:

graphql

Execute a GraphQL query against the Cobo API. Options:
  • -q, --query: The GraphQL query string (required).
  • -v, --variables: JSON string of variables for the GraphQL query.
  • --raw: Output the raw JSON response.
Usage:

Utility Commands

logs tail

Tail the request logs from Cobo. Options:
  • --http-method: Filter logs by HTTP method.
  • --request-path: Filter logs by request path.
  • --status-code: Filter logs by status code.
  • --api-key: Filter logs by API key.
  • --ip-address: Filter logs by IP address.
  • --limit: Number of logs to fetch per request (default: 3).
Usage:

webhook

Commands related to webhook operations. Subcommands:
  • trigger: Manually trigger a webhook event.
  • events: List all available webhook event types.
  • listen: Listen for webhook events using WebSocket.
Usage: cobowebhooktriggerEVENTTYPE[overrideJSONSTRING]cobo webhook trigger EVENT_TYPE [--override JSON_STRING] cobo webhook events $ cobo webhook listen [—events EVENT_LIST] [—forward URL] Options for trigger:
  • EVENT_TYPE: The type of event to trigger (required).
  • --override: JSON string to override event data.
Options for listen:
  • --events: Comma-separated list of event types to listen for.
  • --forward: URL to forward events to.
Examples:
This reference covers all the main commands and subcommands available in the Cobo CLI tool. Each command has various options and arguments that can be used to customize its behavior. For more detailed information about a specific command, you can use the —help option with any command or subcommand.