Skip to main content

CLI reference

Generated from tuna v0.43.1: the same commands and flags that tuna --help prints. To install or update the client, see the installation guide.

Tunnels​

CommandDescription
tuna appConnect a local upstream to a protected App.
tuna httpStart an HTTP tunnel.
tuna kubernetesStart a Kubernetes API tunnel.
tuna mysqlStart a MySQL tunnel.
tuna postgresStart a PostgreSQL tunnel.
tuna redisStart a Redis tunnel.
tuna sshStart an SSH server.
tuna tcpStart a TCP tunnel.
tuna triggerStart a command trigger.

Windows also has tuna 1c, which publishes a 1C infobase. See 1C tunnel.

Tunnel automation​

CommandDescription
tuna detectDetect ports and prepare tuna commands.
tuna runStart tunnels by running a command.
tuna serviceManage tuna background services.
tuna startStart tunnels by tag or name from the configuration file.

Account​

CommandDescription
tuna api-keyManage your api-keys.
tuna loginLogin to tuna.am account.
tuna logoutLogout from tuna.am account: revoke the session and remove the saved api key.
tuna sessionManage your sessions.
tuna whoamiPrint current user details.

Resources​

CommandDescription
tuna domainManage your domain reservations.
tuna endpointManage your endpoint reservations.
tuna monitorInteract with monitors.
tuna secretsSecrets operations.
tuna ssh-sessionManage your SSH sessions.
tuna tunnelManage your tunnels.

Access​

CommandDescription
tuna bastionBastion operations.
tuna meshMesh network operations.

Other​

CommandDescription
tuna completionOutput shell completion code for the specified shell (bash, zsh, fish, or powershell).
tuna configConfiguration file operations.
tuna diagnoseDiagnose connection issues.
tuna skillsInstall agent skills bundled with this CLI.
tuna versionPrint the version string and check for updates.

Global flags​

Work with any command. Commands that print lists can output JSON with --json, for scripts and AI agents.

FlagDescription
--config stringPath to configuration file.
--log stringPath to log file: /file/to/file.log, stdout, stderr.
--log-format stringLog record format: text, json. Default: text.
--log-level stringLogging level: debug, info, warn, error, fatal. Default: info.
--no-colorsDisable colors in output.
--proxy stringProxy for connections to tuna, SOCKS5 only: socks5://[user:pass@]host[:port].