Skip to main content
Mole reading CLI docs

CLI Reference

Complete command-line interface reference for Muti Metroo.

Global Flags

Available for all commands:

  • -h, --help: Show help for command
  • -v, --version: Show version information

Commands

CommandDescription
runRun agent with configuration file
initInitialize agent identity
setupInteractive setup wizard
certCertificate management (CA, agent, client)
hashGenerate bcrypt password hash
statusShow agent status via control socket
peersList connected peers via control socket
routesList route table via control socket
rpcExecute remote procedure call
uploadUpload file to remote agent
downloadDownload file from remote agent
serviceService management (install, uninstall, status)

Quick Examples

# Start agent
muti-metroo run -c config.yaml

# Interactive setup
muti-metroo setup

# Generate CA
muti-metroo cert ca -n "My CA"

# Generate password hash for config
muti-metroo hash --cost 12

# Check agent status via control socket
muti-metroo status -s ./data/control.sock

# List connected peers
muti-metroo peers -s ./data/control.sock

# List route table
muti-metroo routes -s ./data/control.sock

# Execute remote command
muti-metroo rpc agent123 whoami

# Upload file
muti-metroo upload agent123 local.txt /tmp/remote.txt