TeamGriddeveloper
TeamGrid Developer

Install and authenticate

Install the TeamGrid CLI, sign in through the browser, and understand local credential storage and revocation.

Requirements

  • Node.js 22.14 through 24
  • A TeamGrid account with access to an enabled workspace
  • Linux, macOS, or Windows
  • macOS Keychain, Linux Secret Service, or Windows Credential Manager for persistent profiles

Install

Install the stable release from npm. Pin the exact version in controlled environments.

npm install --global @teamgrid/cli@1.1.0
teamgrid --help

Sign in through the browser

teamgrid auth login
teamgrid auth status --check

The CLI opens TeamGrid in the system browser. Sign in normally, select one workspace, compare the pairing phrase shown in the browser and terminal, review the requested scopes, and approve. The regional cell creates a personal credential named TeamGrid CLI and returns it through an Authorization Code with PKCE loopback flow.

The reveal-once secret is written to the operating-system credential store. The CLI profile contains only non-secret region, cell, credential ID, scopes, expiry, origin, and timestamps. TeamGrid never writes the browser session, authorization code, or credential secret to that file.

See browser login for the complete approval sequence, scope presets, remote-terminal behavior, credential lifecycle, and troubleshooting.

Use the bounded daily-work preset only when the CLI needs ordinary task writes:

teamgrid auth login --preset daily-work

Browser login rejects sensitive administrative, finance, credential-management, and PII scopes. Create an explicitly scoped personal credential in Developer Center and import it with --manual when a reviewed local workflow genuinely needs one.

When a browser cannot open

--no-browser prints the private, short-lived approval URL while the CLI continues to wait for its loopback callback:

teamgrid auth login --no-browser

This is not a general device flow. The callback must still reach the machine running the CLI. For a remote host without a safe callback path, create a personal credential in Developer Center and use:

teamgrid auth login --manual

To avoid shell history and process arguments, an existing credential can also be passed over standard input:

printf '%s' "$TEAMGRID_API_TOKEN" | teamgrid auth login --token-stdin

Named profiles

teamgrid --profile production auth login
teamgrid --profile production auth status --check
teamgrid --profile production projects list
teamgrid auth profiles

Remove a stored profile and its credential with:

teamgrid --profile production auth logout

This logout is local only. To stop server access and then clean up locally in one fail-safe command, use:

teamgrid --profile production auth logout --revoke

The CLI removes the keychain entry and profile only after the API confirms revocation. If the request fails, the local profile remains available for diagnosis and retry. Unset TEAMGRID_API_TOKEN first; its process-wide override makes it ambiguous whether the environment or saved credential should be revoked. An existing profile is never overwritten implicitly; use a different profile or --replace only after deciding whether the prior credential must be revoked.

Ephemeral credentials

For a short-lived process, provide TEAMGRID_API_TOKEN directly instead of creating a persistent profile. CI and unattended services must use a service-account credential from a secret manager, not a personal browser credential. Secret masking and log redaction still belong in the execution environment.

TEAMGRID_API_TOKEN="$TEAMGRID_API_TOKEN" teamgrid workspace --output json

PowerShell example:

$env:TEAMGRID_API_TOKEN = "<credential>"
teamgrid workspace --output json
Remove-Item Env:TEAMGRID_API_TOKEN

Never commit credentials, place them in command-line arguments, or print them for debugging. See authentication by environment for remote shells, containers, SDK, MCP, CI, expiry, revocation, and safe support data.

Upgrade, remove, or troubleshoot

The maintenance and troubleshooting guide covers exact version upgrades, uninstalling without leaving unintended credentials, shell-safe JSON input, private certificate authorities, network constraints, debug output, and automation recovery.

Stable documentation · Developer Experience · Reviewed 2026-08-10Edit this page ↗
Documentation feedbackWas this page useful?
Esc

Search TeamGrid Developer

Find guides, concepts and every API operation.