Skip to main content

Cobo Command-line Tool

Project description

Cobo CLI

Cobo CLI is a command-line interface for managing Cobo applications and configurations.

Table of Contents

Installation

To install Cobo CLI, you can use pip with the following command:

pip install cobo-cli

Ensure that you have Python 3.9 or newer installed.

Or you can install Cobo CLI via homebrew:

brew install cobo-cli

Usage

To use the Cobo CLI, run the following command in your terminal:

cobo [OPTIONS] COMMAND [ARGS]...

Check full doc here

Global Options

  • -e, --env [sandbox|dev|prod]: Override the environment for this command.
  • -a, --auth [apikey|user|org]: Override the authentication method for this command.
  • --enable-debug: Enable debug mode for verbose logging.
  • --config-file FILEPATH: Specify the path to the config file.
  • --spec PATH: Path to a custom OpenAPI specification file.
  • --help: Show help message and exit.

Commands

Application Management

  • app: Manage Cobo applications.
    • init: Create a new Cobo application project.
    • run: Run a Cobo application(not supported yet.).
    • upload: Upload a Cobo application.
    • update: Update an existing Cobo application.
    • status: Check the status of a Cobo application.

Authentication

  • auth: Set or view the default authentication method.

Configuration

  • config: Manage CLI configuration settings.
    • set: Set a configuration value.
    • get: Get a configuration value.
    • list: List all configuration values.
    • delete: Delete a configuration value.
    • show-path: Show the configuration file path.

Login and Logout

  • login: Perform user or organization login operations.
    • status: Show the current login status.
    • switch-org: Switch between logged-in organizations.
  • logout: Perform user or organization logout operations.

API Requests

  • get: Make a GET request to a Cobo API endpoint.
  • post: Make a POST request to a Cobo API endpoint.
  • put: Make a PUT request to a Cobo API endpoint.
  • delete: Make a DELETE request to a Cobo API endpoint.
  • graphql: Execute a GraphQL query against the Cobo API.

Documentation

  • doc: Open Cobo documentation or display API operation information.

Environment

  • env: Set or view the current environment.

Logs

  • logs: Commands related to log operations.
    • tail: Tail the request logs from Cobo.

Webhook

  • webhook: Commands related to webhook operations.
    • events: List all available webhook event types.
    • listen: Listen for webhook events using WebSocket.
    • trigger: Manually trigger a webhook event.

Other Commands

  • open: Open a specific Cobo portal page in the default web browser.
  • keys: Generate and manage API/APP keys.
    • generate: Generate a new API/APP key pair.
  • version: Display the current version of the Cobo CLI tool.

Development

Install poetry first

To set up the development environment, install the development dependencies:

poetry install

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

cobo_cli-0.0.4-py3-none-any.whl (68.0 kB view details)

Uploaded Python 3

File details

Details for the file cobo_cli-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: cobo_cli-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 68.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.13

File hashes

Hashes for cobo_cli-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b1347c11afd1d39e25e9a835dd5bc34ac8ea388a83c19639bc51179000f56cf1
MD5 7363e7512ede087d23306d77be7e3b4e
BLAKE2b-256 219ed3257875361745db9b16a111a5476c511c5eaba900c721689a329932ddb0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page