Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

@authmesh/cli

CLI for amesh — device identity management and pairing.

Install

npm install -g @authmesh/cli

Commands

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 tokens

Pairing 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)

Full documentation

License

MIT