Install and authenticate
Requirements
Section titled “Requirements”- Node.js 22.13 through 24
- A TeamGrid API v1 credential created in Settings → Developer
- macOS Keychain or Linux Secret Service for persistent profiles
Install
Section titled “Install”The Developer Platform packages are currently prereleases. Install from next and pin the resolved version in controlled environments.
npm install --global @teamgrid/cli@nextteamgrid --helpCreate the default profile
Section titled “Create the default profile”teamgrid auth loginteamgrid auth status --checkThe credential prompt is masked. The secret is written to the operating-system credential store; the CLI profile file contains only non-secret location metadata.
To avoid shell history and process arguments in a non-interactive setup, pass the credential over standard input:
printf '%s' "$TEAMGRID_API_TOKEN" | teamgrid auth login --token-stdinNamed profiles
Section titled “Named profiles”teamgrid --profile production auth loginteamgrid --profile production auth status --checkteamgrid --profile production projects listteamgrid auth profilesRemove a stored profile and its credential with:
teamgrid --profile production auth logoutEphemeral credentials
Section titled “Ephemeral credentials”For a short-lived CI process, provide TEAMGRID_API_TOKEN directly to the process instead of creating a persistent profile. Secret masking and log redaction still belong in the CI system.
TEAMGRID_API_TOKEN="$TEAMGRID_API_TOKEN" teamgrid workspace --output jsonNever commit credentials, place them in command-line arguments, or print them for debugging.