@authmesh/cli
v0.1.4
Published
CLI for amesh device identity management — init, pair, list, revoke
Maintainers
Readme
@authmesh/cli
CLI for amesh device identity management.
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.
Verification code: 847291
Codes match? (Y/n): y
"Dev Laptop" added to allow list.On the controller:
$ amesh invite 482916
Connected to relay.
Verification code: 847291
Codes match? (Y/n): y
"prod-api" added to allow list.Environment variables
| Variable | Description |
|----------|-------------|
| AUTH_MESH_DIR | Override ~/.amesh/ directory |
| RELAY_URL | WebSocket relay URL (default: wss://relay.authmesh.dev/ws) |
