activate command activates a drone with a token. This connects the drone to the SkyHub network so it can start receiving commands.
Usage
Parameters
--token, -t <token>: The activation token for the drone (required)--services, -s <list>: Comma-separated list of services to start (default:drone-mavros,mavproxy)
| Service | Purpose |
|---|---|
drone-mavros | ROS2 bridge for the flight controller |
camera-proxy | Video streaming service |
mavproxy | MAVLink proxy for the flight controller |
ws_proxy | WebSocket proxy for telemetry |
Examples
Basic activation with default services (drone-mavros and mavproxy):How It Works
The activation process:- Contacts the activation server with the provided token
- Downloads and configures the VPN connection
- Sets up Docker credentials for accessing the container registry
- Downloads the Docker Compose configuration
- Starts the selected services (defaults to
drone-mavrosandmavproxy) - Creates a configuration file at
~/skycore.conf - Grants Docker permissions to the current user
Configuration File
During activation, SkyCore creates/home/skycore/skycore.conf containing:
activated: Current activation status (true/false)token: The token used for activationservices: Comma-separated list of activated servicesactivation_date: Timestamp of when the drone was activated
skycore.conf:
up command to restart the same services after a reboot.
The configuration file is created automatically during activation, but you can edit the
services line later to change which services the up command starts — or rerun activation with a different service selection.Service Management: up and down
SkyCore manages the drone’s Docker services after activation with two commands.
up
Starts the Docker services listed in the configuration file:- Reads the
servicesentry from/home/skycore/skycore.conf - Starts only the services that were specified during activation
- Prints which services were started
down
Stops all Docker services:Typical Workflow
Environment Variables
STAGE: Sets the environment to connect to (default:prod)
Troubleshooting
- Connection Error: Ensure the drone has internet connectivity
- Authentication Failure: Verify the token is correct and hasn’t expired
- VPN Connection Failure: Check that WireGuard is installed and properly configured
- Docker Issues: Ensure Docker and Docker Compose are installed and running
- Permission Denied (
up/down): Ensure your user is in the docker group or use sudo - Missing Configuration File: Run
skycore activatefirst to create the configuration - No Services Started: Check that services are correctly listed in
skycore.conf

