@ident-agency/identa-cli
v0.0.7
Published
Command-line interface for Ident Agency - secure, privacy-preserving identity and data management
Maintainers
Readme
Ident Agency CLI
Command-line interface for Ident Agency - secure, privacy-preserving identity and data management.
Installation
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 | shLocal Development
For development, clone the repository and link locally:
pnpm install
pnpm link --globalUsage
identa helpCommon Commands
Authentication
# 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-passwordFragments (Data Management)
# 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>Secrets Management (Local Device Secrets)
# 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>Key Management
# 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 sshAdvanced Options
# 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 --jsonConfig
You 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 listAPI URL Configuration
The 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)
Set to Production (default)
# 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.agencySet to Local Development
identa config set apiBaseUrl https://www.dev.ident.agency:5173Check Current Setting
identa config get apiBaseUrlOverride Temporarily
Use the --api-url flag to override for a single command:
identa auth login --api-url=https://www.ident.agencyDebug Mode
Use --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)