Reference
CLI
Command reference for the neth CLI.
Install the CLI on your laptop or development machine:
$curl -fsSL https://get.nethera.io/cli | shUse neth help <command> for the same reference in your terminal.
Help
neth help
$neth help [command]Prints the command reference. Use nested commands such as neth help endpoint token create for detailed help.
Examples:
$neth help$neth help deploy$neth help endpoint token createAuth
neth login
$neth login [--no-browser]Opens a browser login flow and stores a CLI session for the configured environment.
Use --no-browser to print the login URL instead of opening it automatically.
neth whoami
$neth whoamiPrints the current environment, API URL, user email, workspace, role, and plan.
neth version
$neth versionPrints the installed CLI version, current environment, and API URL.
neth logout
$neth logoutRemoves the saved session token for the current environment.
Projects
neth init
$neth init [dir]Creates nethera.yml, imports or prompts for Compose content, registers the app when needed, and asks which machines should be targets.
Examples:
$neth init$neth init ./my-appDeployments
neth deploy
$neth deploy [path/to/nethera.yml] [--no-token] [--wait|--replace] [--yes] [--verbose]Submits the desired nethera.yml state to Nethera and streams deployment logs from the target machine.
Examples:
$neth deploy$neth deploy --verbose$neth deploy ./nethera.yml --no-tokenneth apply
$neth apply [path/to/nethera.yml] [--no-token] [--wait|--replace] [--yes] [--verbose]Runs the same deployment flow as neth deploy.
neth destroy
$neth destroy [path/to/nethera.yml] [--yes] [--verbose]Submits a destroy job for the app targets in nethera.yml. Local containers are stopped by Docker Compose on the target machine.
Endpoint API Tokens
neth endpoint
$neth endpoint token <list|create|revoke>Manages endpoint API tokens for services configured with auth: token.
neth endpoint token
$neth endpoint token <list|create|revoke>Lists, creates, and revokes API tokens for services configured with auth: token.
neth endpoint token list
$neth endpoint token list [--app <APP>] [--service <SERVICE>]Lists API tokens for auth: token endpoints. The app is inferred from nethera.yml when possible.
neth endpoint token create
$neth endpoint token create <SERVICE> [--app <APP>] [--name <NAME>] [--expires-at <ISO_TIME>]Creates a named token for a service endpoint and prints the secret token once.
Examples:
$neth endpoint token create api --name "Production client"neth endpoint token revoke
$neth endpoint token revoke <TOKEN_ID> [--yes]Revokes an endpoint API token after confirmation unless --yes is passed.
Logs
neth logs
$neth logs [--app <APP>] [--service <SERVICE>] [--tail <LINES>] [--machine <MACHINE>] [--deployment <DEPLOYMENT>] [--no-follow]Streams recent and live Docker Compose logs through the Nethera agent. The app is inferred from nethera.yml when possible.
Examples:
$neth logs$neth logs --service web --tail 200$neth logs --machine home-gpu --no-followSecrets
neth secrets
$neth secrets <set|list|reveal|delete>Manages app-scoped secrets. The app is inferred from nethera.yml when possible.
neth secrets set
$neth secrets set <NAME> [VALUE] [--app <APP>] [--value <VALUE>]Stores an app-scoped secret. If VALUE is omitted, the CLI prompts without echoing input.
Examples:
$neth secrets set API_KEY$neth secrets set API_KEY <secret-value>$neth secrets set API_KEY --value <secret-value>neth secrets list
$neth secrets list [--app <APP>]Lists secret names and update times. Secret values are not shown.
neth secrets reveal
$neth secrets reveal <NAME> [--app <APP>]Prints a secret value for recovery or debugging.
neth secrets delete
$neth secrets delete <NAME> [--app <APP>] [--yes]Deletes an app-scoped secret after confirmation unless --yes is passed.
Machines
neth machine
$neth machine <list|stats|pair|select|enable|disable|deregister>Lists, pairs, selects deployment targets, enables, disables, and deregisters machines in the current workspace.
neth machine list
$neth machine listShows machine names, regions, availability, and running app summaries.
neth machine stats
$neth machine statsPrints management state, agent health, tunnel status, Docker status, deployments, CPU, memory, disk, and GPU readiness when available.
neth machine pair
$neth machine pair <pair-code> [machine-name] [--region <REGION>]Completes the pairing flow started by the agent installer.
neth machine select
$neth machine select [dir]Reopens the machine target picker and updates targets in the project's nethera.yml, including for an already initialized project.
Examples:
$neth machine select$neth machine select ./my-appneth machine enable
$neth machine enable <machine>Allows Nethera to deploy, route traffic, stream logs, and manage the machine if plan limits allow it.
neth machine disable
$neth machine disable <machine>Stops Nethera from managing the machine without deregistering it or stopping local containers.
neth machine deregister
$neth machine deregister <machine> [--cleanup-deployments] [--cleanup-wireguard] [--yes]Removes the machine from Nethera management and revokes its token. Cleanup flags request local cleanup through the agent.
Usage
neth usage
$neth usage [--month YYYY-MM]Shows workspace bandwidth and request usage for the current or selected month, with byte counts formatted in KB, MB, GB, or TB.
Examples:
$neth usage$neth usage --month 2026-07File Transfer
neth copy
$neth copy <local-path> <machine>:/mnt/nethera/...$neth copy <machine>:/mnt/nethera/... <local-path>Copies files or directories between your local machine and a paired Nethera machine using the agent-coordinated copy channel.
neth ls
$neth ls <machine>:/mnt/nethera/...Shows a bounded directory listing for a path on a paired Nethera machine.