Skip to main content

The official command-line interface for Cyberwave

Project description

Cyberwave CLI

The official command-line interface for Cyberwave. Authenticate and bootstrap robotics projects from your terminal.

Installation

From PyPI (pip)

pip install cyberwave-cli

From APT (Debian/Ubuntu)

# You may need to install curl and/or gpg first, if you're on a very minimal host:
sudo apt update && sudo apt install curl gpg -y

# Add Cyberwave repository (one-time setup)
curl -fsSL "https://packages.buildkite.com/cyberwave/cyberwave-cli/gpgkey" | sudo gpg --dearmor -o /etc/apt/keyrings/cyberwave_cyberwave-cli-archive-keyring.gpg

# Configure the source
echo -e "deb [signed-by=/etc/apt/keyrings/cyberwave_cyberwave-cli-archive-keyring.gpg] https://packages.buildkite.com/cyberwave/cyberwave-cli/any/ any main\ndeb-src [signed-by=/etc/apt/keyrings/cyberwave_cyberwave-cli-archive-keyring.gpg] https://packages.buildkite.com/cyberwave/cyberwave-cli/any/ any main" | sudo tee /etc/apt/sources.list.d/buildkite-cyberwave-cyberwave-cli.list > /dev/null

# Install
sudo apt update && sudo apt install cyberwave-cli

From Source

git clone https://github.com/cyberwave-os/cyberwave-cli
cd cyberwave-cli
pip install -e .

Quick Start - Edge

1. SSH into your edge device

ssh yourhost@your-ip

2. Set up your Edge device

Once you are in your edge device, set it up by:

cyberwave edge install

This command will guide you to your first-time setup of your edge device.

Commands

Command Description
login Authenticate with Cyberwave
logout Remove stored credentials
core Visualize the core commands

cyberwave login

Authenticates with Cyberwave using your email and password.

# Interactive login (prompts for credentials)
cyberwave login

# Non-interactive login
cyberwave login --email you@example.com --password yourpassword

Options:

  • -e, --email: Email address
  • -p, --password: Password (will prompt if not provided)

cyberwave edge

Manage the edge node service lifecycle, configuration, and monitoring.

Subcommand Description
install Install cyberwave-edge-core and register systemd service
uninstall Stop and remove the systemd service
start Start the edge node
stop Stop the edge node
restart Restart the edge node (systemd or process)
status Check if the edge node is running
pull Pull edge configuration from backend
whoami Show device fingerprint and info
health Check edge health status via MQTT
remote-status Check edge status from twin metadata (heartbeat)
logs Show edge node logs
install-deps Install edge ML dependencies
sync-workflows Trigger workflow sync on the edge node
list-models List model bindings loaded on the edge node

cyberwave edge install

Installs the cyberwave-edge-core package (via apt-get on Debian/Ubuntu) and creates a systemd service so it starts on boot. Guides you through workspace and environment selection.

sudo cyberwave edge install
sudo cyberwave edge install -y   # skip prompts

cyberwave edge uninstall

Stops the systemd service, removes the unit file, and optionally uninstalls the package.

sudo cyberwave edge uninstall

cyberwave edge start / stop / restart

cyberwave edge start                        # background
cyberwave edge start -f                     # foreground
cyberwave edge start --env-file ./my/.env   # custom config

cyberwave edge stop

sudo cyberwave edge restart                 # systemd
cyberwave edge restart --env-file .env      # process mode

cyberwave edge status

Checks whether the edge node process is running.

cyberwave edge status

cyberwave edge pull

Pulls edge configuration from the backend using the discovery API (or legacy twin/environment lookup).

cyberwave edge pull                              # auto-discover via fingerprint
cyberwave edge pull --twin-uuid <UUID>           # single twin (legacy)
cyberwave edge pull --environment-uuid <UUID>    # all twins in environment (legacy)
cyberwave edge pull -d ./my-edge                 # custom output directory

cyberwave edge whoami

Displays the unique hardware fingerprint for this device, used to identify the edge when connecting to twins.

cyberwave edge whoami

cyberwave edge health

Queries real-time health status via MQTT (stream states, FPS, WebRTC connections).

cyberwave edge health -t <TWIN_UUID>
cyberwave edge health -t <TWIN_UUID> --watch     # continuous
cyberwave edge health -t <TWIN_UUID> --timeout 10

cyberwave edge remote-status

Checks the last heartbeat stored in twin metadata to determine online/offline status without MQTT.

cyberwave edge remote-status -t <TWIN_UUID>

cyberwave edge logs

cyberwave edge logs              # last 50 lines
cyberwave edge logs -n 100       # last 100 lines
cyberwave edge logs -f           # follow (tail -f)

cyberwave edge install-deps

Installs common ML runtimes needed by edge plugins.

cyberwave edge install-deps                       # ultralytics + opencv
cyberwave edge install-deps -r onnx -r tflite     # specific runtimes

cyberwave edge sync-workflows / list-models

cyberwave edge sync-workflows --twin-uuid <UUID>  # re-sync model bindings
cyberwave edge list-models --twin-uuid <UUID>      # show loaded models

Configuration

Credentials are stored in ~/.cyberwave/credentials.json with restricted permissions (600).

Environment variables:

  • CYBERWAVE_API_URL: Override the API URL (default: https://api.cyberwave.com)

Building for Distribution

PyInstaller (standalone binary)

pip install -e ".[build]"
pyinstaller --onefile --name cyberwave-cli cyberwave_cli/main.py

Debian Package

See debian/ directory for packaging scripts.

Support

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

cyberwave_cli-0.11.9.tar.gz (104.3 kB view details)

Uploaded Source

Built Distribution

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

cyberwave_cli-0.11.9-py3-none-any.whl (71.0 kB view details)

Uploaded Python 3

File details

Details for the file cyberwave_cli-0.11.9.tar.gz.

File metadata

  • Download URL: cyberwave_cli-0.11.9.tar.gz
  • Upload date:
  • Size: 104.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.10.19 Linux/6.14.0-1017-azure

File hashes

Hashes for cyberwave_cli-0.11.9.tar.gz
Algorithm Hash digest
SHA256 725c4631c59dfd0dcad8115414e6c6a240898293a9313546acf88e4d3b30b571
MD5 7f642452e3dfaa188ef65ef062313e98
BLAKE2b-256 d5c6e4a648eb8ddbbb4ff1613e91bf459abe793368d9825cbd1c878e4aca6801

See more details on using hashes here.

File details

Details for the file cyberwave_cli-0.11.9-py3-none-any.whl.

File metadata

  • Download URL: cyberwave_cli-0.11.9-py3-none-any.whl
  • Upload date:
  • Size: 71.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.10.19 Linux/6.14.0-1017-azure

File hashes

Hashes for cyberwave_cli-0.11.9-py3-none-any.whl
Algorithm Hash digest
SHA256 a949916d54b1a5be0db0431f0e12095b5b46a1ea34e0b73809e5d6f9e07c2288
MD5 4751e26aa7121cea4406cab5ebae5f30
BLAKE2b-256 a9c2c52877f4eb0f5e0a16377e88ea16bfb5fedf0ad8ee5bcc474051dc93f77e

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