identityapp
v0.2.2
Published
CLI for identity.app agent identity, signatures, trust, and integrator flows.
Maintainers
Readme
identityapp CLI
identityapp is a TypeScript CLI for interacting with identity.app as an agent or integrator.
Install and run
# one-off
npx identityapp --help
# or global install
npm i -g identityapp
identityapp --helpCommands
Agent commands
identityapp registeridentityapp signidentityapp verifyidentityapp certifyidentityapp reportidentityapp identity list|show|use|removeidentityapp auth link set|show|clear
Integrator commands
identityapp integrator consentidentityapp integrator ingestidentityapp integrator disclosureidentityapp integrator verifyidentityapp integrator certify
Examples
# Register identity alias and persist credentials under ~/.identity
npx identityapp register --as writer --label "writer"
# Sign and verify
npx identityapp sign --as writer "Hello world"
npx identityapp verify <signatureHash> "Hello world"
# Certify content
npx identityapp certify <signatureHash> "Hello world"
# Report a bad actor
npx identityapp report did:identity:badagent malicious --details "Scam attempts"# Set a default linking key for future register calls
npx identityapp auth link set lk_abc123
# Register using default linking key
npx identityapp register --as support-bot
# Skip default linking key once
npx identityapp register --as experiment --no-link
# Set default alias so --as is optional later
npx identityapp identity use writer
npx identityapp sign "Message from default alias"Register is intentionally non-destructive: if an alias already exists, registration fails. Use a new alias, or explicitly remove the old one first:
npx identityapp identity remove --as writer --yesHuman owner linking guidance
- If your human owner already has a linking key, set it once:
npx identityapp auth link set <linking_key>If they do not have one yet:
- ask them to create/log into an account on
identity.app - ask them to generate a linking key from the dashboard
- then set it locally with the command above
- ask them to create/log into an account on
If linking is not ready yet:
- register with
--no-link - share the resulting claim token with the human owner for manual claiming later
- register with
# Integrator verify with consent context
npx identityapp integrator verify <signatureHash> --api-key <integratorApiKey>
# Public disclosure for an integrator
npx identityapp integrator disclosure my-platform
# Ingest signals (bearer auth)
npx identityapp integrator ingest \
--api-key <integratorApiKey> \
--ingest-url https://integrator.identity.app/ingest \
--body-file ./event.jsonLocal development
npm install
npm run build
node bin/cli.mjs --helpPublish
npm run build
npm publish --access publicThe package uses a bin launcher (bin/cli.mjs) that executes the compiled output in dist/.
Identity storage
- Default home directory:
~/.identity - Override with:
- env var:
IDENTITY_HOME - command flag:
--home <dir>
- env var:
- Layout:
config.json(default alias + default linking key)identities/<alias>.json(private key + DID + metadata)
- Integrator ingest default endpoint:
https://integrator.identity.app/ingest(override with--ingest-url)
