cinch auth & cinch pair
cinch auth login
Section titled “cinch auth login”Create a new account and sign in. Opens a browser for GitHub or Google sign-in; once complete, credentials are saved to ~/.cinch/config.json.
cinch auth loginTo target a self-hosted relay:
cinch auth login --relay https://your-relay.example.com| Flag | Type | Default | Description |
|---|---|---|---|
--relay | string | api.cinchcli.com | Override relay URL |
cinch auth pair <token>
Section titled “cinch auth pair <token>”Exchange a pairing token for a per-device auth token. Run this on a remote machine after generating a token with cinch auth regenerate-pair-token (or after cinch auth login on the primary device).
cinch auth pair abc123xyzcinch auth status
Section titled “cinch auth status”Show current authentication state: user ID, relay URL, and hostname.
cinch auth statuscinch auth logout
Section titled “cinch auth logout”Remove stored credentials locally and revoke the device on the relay.
cinch auth logoutcinch auth regenerate-pair-token
Section titled “cinch auth regenerate-pair-token”Mint a new single-use pairing token to add another device without re-logging in.
cinch auth regenerate-pair-tokencinch auth device-code
Section titled “cinch auth device-code”Start the device-code flow explicitly (non-interactive / headless). Useful in scripts where you want the device-code URL printed without the TUI wizard.
cinch auth device-codecinch pair <ssh-target>
Section titled “cinch pair <ssh-target>”The fast path for remote machines. Regenerates a pair token, SSHes into the target, installs cinch if needed, and pairs it with your account — all in one command. No manual steps on the remote end.
# Basiccinch pair user@remotehost
# SSH alias (configured in ~/.ssh/config)cinch pair devbox
# Skip install if cinch is already on the remotecinch pair user@remotehost --skip-install
# Use a custom relay on the remote machinecinch pair user@remotehost --relay-url https://custom-relay.example.com| Flag | Type | Default | Description |
|---|---|---|---|
--skip-install | bool | false | Skip cinch binary installation on the remote |
--relay-url | string | — | Override the relay URL configured on the remote machine |
The SSH target can be anything ssh <target> accepts. For non-standard ports or jump hosts, configure them in ~/.ssh/config and pass the alias as the target.
Was this page helpful?