Skip to main content
Cobo Command Line Interface (CLI) is a powerful developer tool designed to help you build, test, and manage your integration with Cobo Wallet-as-a-Service (WaaS) 2.0 directly from the command line.

Key features

  • API interaction: Easily interact with Cobo WaaS 2.0 through RESTful API directly from your terminal.
  • App management: Streamline your development process by creating applications from pre-built templates that support multiple programming languages and frameworks, with the WaaS SDK pre-integrated. Additionally, you can use Cobo CLI to build, manage, and publish Cobo Portal Apps efficiently through the command line.
  • Multiple authentication methods: Utilize and test three types of authentication mechanisms: Cobo Portal account, Org Access Token, and API key.
  • Webhook testing: Test and debug your webhook integrations locally.
  • Real-time API monitoring: Stream API request logs for quick debugging and monitoring.
  • Environment switching: Seamlessly switch between the development and production environments, allowing for safe testing and development before deploying to production.
  • API documentation lookup: Access helpful documentation for the Cobo WaaS 2.0 API, requests, responses, and their parameters directly from the command line.

Use cases

Cobo CLI is particularly useful for:
  • Developers integrating Cobo WaaS 2.0 into their applications.
  • DevOps engineers managing Cobo resources and monitoring transactions.
  • QA teams testing Cobo integrations and API responses.
  • Support teams troubleshooting customer issues related to Cobo’s services.

Example usage

Here are some quick examples of how to use Cobo CLI. These examples demonstrate some of the key functionalities of Cobo CLI, including REST API interactions, application management, accessing API documentation, real-time log monitoring, and webhook event handling.
  1. List all Custodial Wallets:
cobo get /wallets --wallet_type Custodial 
  1. Create a new application with WaaS SDK integrated using a template:
cobo app init --app-type portal --web react --backend fastapi -d demo_project
  1. Look up documentation for a specific API operation:
cobo doc /wallets/{wallet_id}/utxos
  1. Monitor real-time API request logs for debugging and troubleshooting:
cobo logs tail --http-method GET --request-path /wallets
  1. Trigger a webhook event:
cobo webhook trigger wallets.transaction.updated --override '{"wallet_id": "1234567890"}'
  1. Listen for webhook events and forward them to a local endpoint:
cobo webhook listen --events wallets.transaction.updated --forward http://localhost:9988
Feel free to share your feedback to improve our documentation!