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
Release history Release notifications | RSS feed
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.7.0.tar.gz
(20.2 kB
view hashes)
Built Distribution
Close
Hashes for cortexapps_cli-0.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 581942958e6c8a7e6157024c78b070d1757382996ceb10a03144feb31e1c3a51 |
|
MD5 | a0b86f83b108d659c450eb437434e73b |
|
BLAKE2b-256 | 15ebfaad4960291d8d02de0a21c24f5b3647ccc5a4e7d5ceea338c83d4d1e53d |