Docs / Install

Install the device agent

One command takes a device from factory-fresh to enrolled in your fleet. The device generates its private key locally - it never leaves the device - and exchanges an enrollment token for a signed identity and the root of update trust.

  1. 1

    Create an enrollment token

    In the console, open Devices → Add device. Choose how many devices the token may enroll and how long it stays valid. The token is shown once and stored only as a hash.
  2. 2

    Run the install command on the device

    The console gives you the exact command, including your token:

    curl -fsSL https://meshanics.com/install.sh | sudo bash -s -- --token <TOKEN>

    Add --name line7-cam-03 to override the device name (default: the device hostname). Prefer to read before you run? Download install.sh and inspect it - it is ~120 lines of plain bash.

  3. 3

    Watch it appear

    The agent starts as a hardened systemd service, connects over mutual TLS and shows up in the console within seconds - hardware profile, heartbeat and OTA readiness included.

What the installer does

Requirements

Revoking access

Enrollment tokens can be revoked at any time from the same panel; expiry and use budgets bound the blast radius of a leaked token. Every token creation, enrollment and revocation lands in the append-only audit log that backs your CRA evidence reports.

Removing a device

Offboard a device from the console and it is done - there is no separate cleanup step. On its next check-in the agent wipes its keys and update state, then removes its service and its own binary, leaving nothing behind on the host. The device drops out of your fleet immediately; the agent finishes uninstalling the moment it next connects. Bringing the hardware back is a fresh install with a new token.