tenax sandbox connect
tenax sandbox connect¶
Print the sandbox's connection string, opening a local tunnel or port-forward when it needs one
Synopsis¶
Prints a connection string for any database client:
- a direct route (expose.provider service): the sandbox's own address; nothing runs locally;
- a tunnel route (expose.provider cloudflare): opens "cloudflared access tcp" on a local port until Ctrl+C;
- no route: forwards a local port to the sandbox through your kubeconfig, like kubectl port-forward, until Ctrl+C.
Options¶
--context string kubeconfig context for a sandbox without a route
-h, --help help for connect
--kubeconfig string kubeconfig for a sandbox without a route (default: $KUBECONFIG or ~/.kube/config)
-o, --output string output format: table, json or yaml (default "table")
--port int local port (default 15432 for Postgres, 13306 for MySQL)
--server tenax login Tenax API URL (default: saved by tenax login, or $TENAX_SERVER)
--timeout duration how long --wait waits (default 30m0s)
--token string Access token (default: saved, or $TENAX_TOKEN)
SEE ALSO¶
- tenax sandbox - Manage sandboxes (list, show, extend, delete, expose, unexpose, connect)