Command-line interface for Ident Agency - secure, privacy-preserving identity and data management.
Install the CLI globally to use it from anywhere:
npm install -g @ident-agency/identa-cliOr using npx (without installation):
npx @ident-agency/identa-cli helpnpm install -g @ident-agency/identa-cliOr using npx (without installation):
npx @ident-agency/identa-cli helpnpx @ident-agency/identa-cli helpOr install the binary
curl -fsSL https://get.ident.agency/install.sh | shFor development, clone the repository and link locally:
pnpm install
pnpm link --globalidenta help# Login to Ident.Agency (opens browser for OAuth flow)
identa auth login
# View your profile information
identa auth profile
# Logout
identa auth logout
# Change password
identa auth change-password# List fragments (alias: ls)
identa fragment list
identa fragment ls
# Get a fragment value
identa fragment get <path>
# Example: identa fragment get profile/name
# Write/update a fragment
identa fragment put <path> <value>
# Example: identa fragment put profile/bio "Software developer"
# Get raw fragment data (includes metadata)
identa fragment raw <path>
# Delete a fragment
identa fragment delete <path>
# Example: identa fragment delete profile/old-data
# Recover a deleted fragment
identa fragment recover <path># Set the secrets provider (local, gcp)
identa secrets provider <provider>
# Example: identa secrets provider local
# Store a secret locally
identa secrets set <key> <value>
# Example: identa secrets set github-token ghp_xxxxx
# Retrieve a secret
identa secrets get <key>
# List all secrets
identa secrets list
# Delete a secret
identa secrets delete <key>
# Google Cloud Platform secrets (if configured)
identa secrets gcp <project-id> <secret-name># Register a new key/device
identa keys register
# List registered keys
identa keys list
# Remove a key
identa keys remove <key-id>
# Test key functionality
identa keys test
# Device-specific operations
identa keys device
# Recovery key operations
identa keys recovery
# SSH key operations
identa keys ssh# Enable debug output
identa auth login --debug
# Use a different API endpoint
identa auth login --api-url https://staging.ident.agency
# Output as JSON (where supported)
identa fragment get profile --jsonYou can set config options with:
identa config set <key> <value>You can get config options with:
identa config get <key>You can list all config options with:
identa config listThe CLI needs to know which Ident.Agency server to connect to. The API URL is resolved in the following priority order:
- Command-line flag
--api-url(highest priority) - Config file setting
apiBaseUrl - Default
https://www.ident.agency(production)
# Remove any custom setting to use the default production URL
identa config delete apiBaseUrl
# Or explicitly set to production
identa config set apiBaseUrl https://www.ident.agencyidenta config set apiBaseUrl https://www.dev.ident.agency:5173identa config get apiBaseUrlUse the --api-url flag to override for a single command:
identa auth login --api-url=https://www.ident.agencyUse --debug to see which API URL is being used and its source:
identa auth login --debug
# Output: 🔧 API URL: https://www.ident.agency (from config)