Command-line interface for the Aignostics Platform.
npm install -g @aignostics/cliAll commands accept a global --environment option (production [default], staging, develop).
All commands also accept a global --format option (text [default], json). text prints a
human-friendly table or summary showing the most relevant fields; json prints the full raw
response, useful for scripting.
# Login to the platform (opens a browser)
aignostics-platform auth login
# Login using an existing refresh token
aignostics-platform auth login --refreshToken <token>
# Check authentication status
aignostics-platform auth status
# Logout and remove the stored token
aignostics-platform auth logout
# Test API connection
aignostics-platform test-api# List applications
aignostics-platform applications list
# Get details for a specific application
aignostics-platform applications get <applicationId>
# List versions of an application
aignostics-platform applications versions list <applicationId>
# Get details of a specific application version
aignostics-platform applications versions get <applicationId> <versionNumber># Create a new application run, with items provided inline...
aignostics-platform runs create <applicationId> <versionNumber> --items '[{"wsi_id": "wsi-123"}]'
# ...from a file...
aignostics-platform runs create <applicationId> <versionNumber> --items-file ./items.json
# ...or piped via stdin
cat items.json | aignostics-platform runs create <applicationId> <versionNumber>
# List application runs, optionally filtered/sorted
aignostics-platform runs list --applicationId <applicationId> --sort '-submitted_at'
# Get run details
aignostics-platform runs get <applicationRunId>
# Cancel a run
aignostics-platform runs cancel <applicationRunId>
# List run results
aignostics-platform runs results list <applicationRunId>
# Delete run results
aignostics-platform runs results delete <applicationRunId>
# Get a single item within a run
aignostics-platform runs items get <applicationRunId> <externalId>
# Set (replace) a run's custom metadata (pass "null" to clear it)
aignostics-platform runs metadata set <applicationRunId> '{"note": "Reviewed by QA"}'
# Set (replace) a single item's custom metadata
aignostics-platform runs items metadata set <applicationRunId> <externalId> '{"reviewed": true}'# Grant a user access to a run
aignostics-platform grants create --resourceType run --resourceId <runId> --subjectType user --subjectEmail colleague@example.com --relation viewer
# List grants, optionally filtered
aignostics-platform grants list --resourceType run --resourceId <runId>
# Get details of a specific grant
aignostics-platform grants get <grantId>
# Revoke a grant
aignostics-platform grants revoke <grantId>
# Create a share token (the token value is shown only once)
aignostics-platform share-tokens create --expiresAt 2026-01-01T00:00:00Z
# List share tokens, optionally filtered
aignostics-platform share-tokens list --runId <runId>
# Get details of a specific share token
aignostics-platform share-tokens get <shareTokenId>
# Revoke a share token
aignostics-platform share-tokens revoke <shareTokenId>info- Display CLI version informationtest-api- Test API connectionauth-login,logout,statusapplications-list,get,versions list,versions getruns-create,list,get,cancel,metadata set,results list,results delete,items get,items metadata setgrants-create,list,get,revokeshare-tokens-create,list,get,revoke
For detailed usage information, use aignostics-platform --help or aignostics-platform <command> --help.