Skip to content

varitykit login / auth

Varity Team Core Contributors Updated March 2026

Log in to Varity from the CLI using a deploy key from the developer portal. Authentication is required for deploying apps and managing domains.

Terminal window
# Top-level shortcut
varitykit login
# Or use the auth subcommand
varitykit auth login

Both commands do the same thing: prompt you for a deploy key and save it locally.

You need a deploy key from the Varity developer portal:

  1. Go to the developer portal

    Open developer.store.varity.so/dashboard/settings in your browser.

  2. Copy your deploy key

    Find the deploy key section on the Settings page and copy the key.

  3. Run the login command

    Terminal window
    varitykit login

    The CLI will open the settings page in your browser automatically. Paste the key when prompted (input is hidden for security).

  4. Verify you are logged in

    Terminal window
    varitykit auth status

Log in with your deploy key. The CLI opens the developer portal in your browser, then prompts you to paste the key.

Terminal window
varitykit login
# or
varitykit auth login

Example output:

╭─────────────────────────────────────────────────────╮
│ Get your deploy key from the developer portal: │
│ https://developer.store.varity.so/dashboard/settings│
╰─────────────────────────────────────────────────────╯
Opening https://developer.store.varity.so/dashboard/settings in your browser...
(input will be hidden for security)
Paste your deploy key: ********
Deploy key saved securely.
Logged in successfully!
Configured: deploy key, gateway key, database credentials
Your domains are now protected. Run 'varitykit app deploy' to deploy.

If you are already logged in, the CLI will show your current key (masked) and ask if you want to replace it.

Remove your saved credentials from this machine.

Terminal window
varitykit auth logout

This removes the deploy key, gateway key, and database credentials from your local config file. You will need to run varitykit login again to deploy or manage domains.

Show your current login status.

Terminal window
varitykit auth status

Example output when logged in:

Logged in (key: dk_live_...7f2a)

Example output when not logged in:

Not logged in.
Run 'varitykit login' to connect your developer account.

Credentials are saved to ~/.varitykit/config.json with restricted file permissions:

PathPermissions
~/.varitykit/700 (owner-only access)
~/.varitykit/config.json600 (owner-only read/write)

The config file may contain:

KeyDescription
deploy_keyYour developer portal deploy key
gateway_api_keyAPI key for the Varity gateway (auto-configured)
jwt_secretDatabase credentials (auto-configured)
CommandRequires Login
varitykit app deployYes
varitykit domains listYes
varitykit doctorNo
varitykit initNo
varitykit template listNo

Run varitykit login and paste your deploy key from the developer portal.

Make sure you copied the full key from the developer portal Settings page. The key must be at least 10 characters long.

Check that the CLI has write access to your home directory:

Terminal window
ls -la ~/.varitykit/

If the directory does not exist, varitykit login will create it automatically.