Universal Command Line Interface for Hive agent.
Project description
Hive-CLI
Hive-CLI is a command-line interface for managing and deploying the Hive agent and experiments on Kubernetes and other platforms.
███ █████ █████ ███
░░░███ ░░███ ░░███ ░░░
░░░███ ░███ ░███ ████ █████ █████ ██████
░░░███ ░███████████ ░░███ ░░███ ░░███ ███░░███
███░ ░███░░░░░███ ░███ ░███ ░███ ░███████
███░ ░███ ░███ ░███ ░░███ ███ ░███░░░
███░ █████ █████ █████ ░░█████ ░░██████
░░░ ░░░░░ ░░░░░ ░░░░░ ░░░░░ ░░░░░░
Installation
Pre-requisites
- Python 3.8 or higher
- docker for image building.
- gcloud CLI via
brew install gcloudfor authentication.
Notes:
- Make sure to enable the
✅ Use containerd for pulling and storing imagesoption in Docker Desktop settings, which is required for multi-arch image support.
Install via pip
pip install hiverge-cli
Install from source
source start.sh
How to run
Note: Hive-CLI reads the configuration from a yaml file, by default it will look for the ~/.hive/sandbox-config.yaml. You can also specify a different configuration file using the -f option. Refer to the config.yaml for examples.
Below we assume that you have a ~/.hive/sandbox-config.yaml file.
Verify the version
hive version
Edit the experiment
Edit command will open the configuration file in your default editor (e.g., vim, nano, etc.) for you to modify the experiment configuration. You can also specify a different editor using the EDITOR environment variable, by default it will use vim.
hive edit config
Create an experiment
hive create exp my-experiment
Note: This will build a Docker image for the experiment and push it to the container registry which may take some time, based on the Dockerfile and network speed. You can enable the Debug mode in the configuration file to see more detailed logs.
List experiments
hive show exps
Visit Dashboard
hive dashboard
Show logs
Sandboxes are the isolated environments where experiments run in parallel. You can list all the sandboxes and view their logs.
hive show sands
hive log <sandbox-name>
Delete an experiment
hive delete exp my-experiment
More
See hive -h for more details.
Development
Debugging
Change the log_level in the configuration file to DEBUG to see more detailed logs.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hiverge_cli-0.2.9.tar.gz.
File metadata
- Download URL: hiverge_cli-0.2.9.tar.gz
- Upload date:
- Size: 19.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a5541bda864eca7fac963f2797fa1f76f385441b3c2bee3ed286a3c7ec927b3
|
|
| MD5 |
312ca36a0c574a5ae2e57311e056a18c
|
|
| BLAKE2b-256 |
2bc772c53d550d552a8553aabc55c0389821d4c9a5f212ef01ad16667e5734a4
|
File details
Details for the file hiverge_cli-0.2.9-py3-none-any.whl.
File metadata
- Download URL: hiverge_cli-0.2.9-py3-none-any.whl
- Upload date:
- Size: 22.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52c0f611e7207a82b99f1740762e264aac96ee19c1b2d9937fc831e74aaace2e
|
|
| MD5 |
7979dd999f3fecd310b8c5be251a1e93
|
|
| BLAKE2b-256 |
7bd5b50691e9a492025d27e1571b28934fa2ad81245eeec128ae2b16ae6526a6
|