CLI commands

deploy

create or update apis
Usage:
cortex deploy [CONFIG_FILE] [flags]
Flags:
-e, --env string environment (default "default")
-f, --force override the in-progress api update
-h, --help help for deploy
-y, --yes skip prompts

get

get information about apis
Usage:
cortex get [API_NAME] [flags]
Flags:
-e, --env string environment (default "default")
-h, --help help for get
-w, --watch re-run the command every second

logs

stream logs from an api
Usage:
cortex logs API_NAME [flags]
Flags:
-e, --env string environment (default "default")
-h, --help help for logs

refresh

restart all replicas for an api (witout downtime)
Usage:
cortex refresh API_NAME [flags]
Flags:
-e, --env string environment (default "default")
-f, --force override the in-progress api update
-h, --help help for refresh

predict

make a prediction request using a json file
Usage:
cortex predict API_NAME JSON_FILE [flags]
Flags:
--debug predict with debug mode
-e, --env string environment (default "default")
-h, --help help for predict

delete

delete an api
Usage:
cortex delete API_NAME [flags]
Flags:
-e, --env string environment (default "default")
-f, --force delete the api without confirmation
-h, --help help for delete
-c, --keep-cache keep cached data for the api

cluster up

spin up a cluster
Usage:
cortex cluster up [flags]
Flags:
-c, --config string path to a cluster configuration file
-e, --env string environment (default "default")
-h, --help help for up

cluster info

get information about a cluster
Usage:
cortex cluster info [flags]
Flags:
-c, --config string path to a cluster configuration file
-d, --debug save the current cluster state to a file
-e, --env string environment (default "default")
-h, --help help for info

cluster update

update a cluster
Usage:
cortex cluster update [flags]
Flags:
-c, --config string path to a cluster configuration file
-e, --env string environment (default "default")
-h, --help help for update

cluster down

spin down a cluster
Usage:
cortex cluster down [flags]
Flags:
-c, --config string path to a cluster configuration file
-h, --help help for down

version

print the cli and cluster versions
Usage:
cortex version [flags]
Flags:
-e, --env string environment (default "default")
-h, --help help for version

configure

configure the cli
Usage:
cortex configure [flags]
Flags:
-k, --aws-access-key-id string set the aws access key id without prompting
-s, --aws-secret-access-key string set the aws secret access key without prompting
-e, --env string environment (default "default")
-h, --help help for configure
-o, --operator-endpoint string set the operator endpoint without prompting
-p, --print print the configuration

completion

generate bash completion scripts
add this to your bashrc or bash profile:
source <(cortex completion)
or run:
echo 'source <(cortex completion)' >> ~/.bash_profile # mac
echo 'source <(cortex completion)' >> ~/.bashrc # linux
this will also add the "cx" alias (note: cli completion requires the bash_completion package to be installed on your system)
Usage:
cortex completion [flags]
Flags:
-h, --help help for completion