Skip to main content

Drove Command Line Interface

Project description

Drove CLI

Command-line interface for the Drove Container Orchestrator.

Installation

Using pip

pip install drove-cli

Using pip (virtual environment)

python3 -m venv ~/.venvs/drove-cli
source ~/.venvs/drove-cli/bin/activate
pip install drove-cli

To activate in a new shell:

source ~/.venvs/drove-cli/bin/activate

Using Docker

docker pull ghcr.io/phonepe/drove-cli:latest

Create a wrapper script for convenience:

cat > ~/bin/drove << 'EOF'
#!/bin/sh
docker run --rm -it --network host \
    -v ${HOME}/.drove:/root/.drove:ro \
    ghcr.io/phonepe/drove-cli:latest "$@"
EOF
chmod +x ~/bin/drove

Upgrade

Using pip

pip install -U drove-cli

Using Docker

docker pull ghcr.io/phonepe/drove-cli:latest

Configuration

Create ~/.drove with your cluster configuration:

[DEFAULT]
stage_token = <your-stage-token>
prod_token = <your-prod-token>

[local]
endpoint = http://localhost:10000
username = admin
password = admin

[stage]
endpoint = https://drove.stage.example.com
auth_header = %(stage_token)s

[prod]
endpoint = https://drove.prod.example.com
auth_header = %(prod_token)s

Quick Start

# Verify connection
drove -c prod cluster ping

# View cluster status
drove -c prod cluster summary

# List applications
drove -c prod apps list

# Get application info
drove -c prod apps info <app-name>

Commands

Command Description
appinstances Application instance operations
apps Application lifecycle Management (list, info, deploy, scale, suspend)
cluster Cluster operations (ping, summary, leader, maintenance)
config CLI configuration management
describe Show detailed information about a resource
executor Executor management
localservices Local service management
lsinstances Local service instance operations
tasks One-off task execution

Use drove -h or drove <command> -h for detailed help.

Global Options

-f, --file FILE        Configuration file (default: ~/.drove)
-c, --cluster CLUSTER  Cluster name from config file
-e, --endpoint URL     Drove endpoint URL
-t, --auth-header HDR  Authorization header value
-u, --username USER    Cluster username
-p, --password PASS    Cluster password
-i, --insecure         Skip SSL verification
-d, --debug            Print error details

Documentation

Full documentation is available at phonepe.github.io/drove-orchestrator

License

© 2024 Santanu Sinha | Apache 2.0

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

drove_cli-0.0.8.tar.gz (23.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

drove_cli-0.0.8-py3-none-any.whl (31.9 kB view details)

Uploaded Python 3

File details

Details for the file drove_cli-0.0.8.tar.gz.

File metadata

  • Download URL: drove_cli-0.0.8.tar.gz
  • Upload date:
  • Size: 23.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.10.19 Linux/6.11.0-1018-azure

File hashes

Hashes for drove_cli-0.0.8.tar.gz
Algorithm Hash digest
SHA256 86021279e183003daa634225f14b3cd1a013d8cb9e445ff928dabbe5b14fb00b
MD5 565d7e88e89b7213bb85d5f57b0653b8
BLAKE2b-256 40ac48a7f7373c404cd3937e6887c602f8ef6f8214f938e3d1e6c5c6ce820c29

See more details on using hashes here.

File details

Details for the file drove_cli-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: drove_cli-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 31.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.10.19 Linux/6.11.0-1018-azure

File hashes

Hashes for drove_cli-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 2ce7fc0b01f3476be3657a145d8b20d8854148367ac61fe9b88f711dd23c6986
MD5 2f9d33ab780e1a85e082a1dea8411c62
BLAKE2b-256 f1dd40bf37bc7e62d4968c24f34bd1b8eb7bad5df577b10cf47ede6593286d41

See more details on using hashes here.

Supported by

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