@authmesh/cli
v0.7.0
Published
CLI for amesh — device identity management and pairing
Maintainers
Readme
@authmesh/cli
CLI for amesh — device identity management and pairing.
Install
npm install -g @authmesh/cliCommands
amesh init --name "prod-api" # Create a device identity
amesh listen # Start pairing (target side)
amesh invite <code> # Join pairing (controller side)
amesh list # Show trusted devices
amesh revoke <device-id> # Remove a trusted device
amesh provision # Generate bootstrap tokensPairing flow
On the target machine:
$ amesh listen
Pairing code: 482916
Controller connected.
Enter the 6-digit code shown on the Controller.
Verification code: 847291
"Dev Laptop" added as controller.On the controller:
$ amesh invite 482916
Connected to relay.
Verification code: 847291
Waiting for target to confirm verification code...
"prod-api" added as target.Environment variables
| Variable | Description |
|----------|-------------|
| AUTH_MESH_DIR | Override ~/.amesh/ directory |
| AMESH_RELAY_URL | WebSocket relay URL (default: wss://relay.authmesh.dev/ws) |
