Skip to main content

Command Line Interface for cortexapps

Project description

Cortex CLI

cortexapps-cli implements a command line interface for cortexapps.

Installing Cortex CLI

Cortex CLI is available on PyPI:

$ python -m pip install cortexapps-cli

Alternatively, in a venv environment:

VENV_DIR=~/.venv/cortex
python3 -m venv $VENV_DIR
source $VENV_DIR/bin/activate
pip install cortexapps-cli
cortex -v

Cortex CLI officially supports Python 3.7+.

Configuration

Cortex CLI requires a configuration file that requires, at a minimum, a Cortex API key.

You will be prompted to create a configuration file on the first request:

/# cortex catalog list
Cortex CLI config file /root/.cortex/config does not exist.  Create (Y/N)?
Y
Created file: /root/.cortex/config
Edit this file and replace the string 'REPLACE_WITH_YOUR_CORTEX_API_KEY' with the contents
of your Cortex API key and then retry your command.

Help

Run cortex -h to see a list of all commands.

Run cortex -h to see detailed help for each command.

Run cortex -h for detailed help for each subcommand.

Project details


Download files

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

Source Distribution

cortexapps_cli-0.10.0.tar.gz (21.1 kB view details)

Uploaded Source

Built Distribution

cortexapps_cli-0.10.0-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file cortexapps_cli-0.10.0.tar.gz.

File metadata

  • Download URL: cortexapps_cli-0.10.0.tar.gz
  • Upload date:
  • Size: 21.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.6 Linux/6.2.0-1016-azure

File hashes

Hashes for cortexapps_cli-0.10.0.tar.gz
Algorithm Hash digest
SHA256 f24af4fef59416fb36ce9a9b6912cea2ed81dd3616af9caeb7d179ee2d3d7a94
MD5 0a6fe6e560bd231862f7588fef4e8163
BLAKE2b-256 bccf2023968b2322d34f5e8a49f6204e0382c0c882ce7e0efbc251a0d4d20724

See more details on using hashes here.

File details

Details for the file cortexapps_cli-0.10.0-py3-none-any.whl.

File metadata

  • Download URL: cortexapps_cli-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 21.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.6 Linux/6.2.0-1016-azure

File hashes

Hashes for cortexapps_cli-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac9b7f3b19547f3107a7fef41211e1cee7e630f2f33f25d4a47afaa570ff4bbe
MD5 da817c41d58b80ef6fe5d0bd2ad97421
BLAKE2b-256 c1fa0a1ea9eb82d612f9c48f8dd0a60f1f92e1be4ae4df27705aa8db22482b55

See more details on using hashes here.

Supported by

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