trusthub console
Manage Trust Hub through the gateway console API. Provides subcommands for identity, policy, audit, and ledger management. Requires a running Trust Hub Gateway (default http://localhost:8000).
Subcommand Groups
| Group | Description |
|---|
| trusthub console identity | Manage DIDs via the console API |
| trusthub console policy | Manage authorization policy rules |
| trusthub console audit | View and verify the audit log |
| trusthub console ledger | View ledger entries, scores, and verify chain |
Identity Commands
# List all registered DIDs
trusthub console identity list
# Create a new DID
trusthub console identity create acme --entity-type agent
# Show identity statistics
trusthub console identity stats
Policy Commands
# List policy rules
trusthub console policy list
# Add a new rule
trusthub console policy add allow-read --subject "did:trusthub:acme:*" --effect allow --priority 10
# Test a policy decision
trusthub console policy test did:trusthub:acme:abc... --action tool_call --resource "*"
# Export policy config
trusthub console policy export --output policy_backup.json
Audit Commands
# List recent audit entries
trusthub console audit list --limit 50
# Verify audit chain via gateway
trusthub console audit verify
Ledger Commands
# List ledger entries
trusthub console ledger list --limit 50
# Get trust score for a DID
trusthub console ledger score did:trusthub:acme:abc123...
# Verify ledger chain via gateway
trusthub console ledger verify
Common Options
| Option | Description |
|---|
| --url | Gateway URL (default http://localhost:8000). Applies to all console commands. |