CLI Reference
The Trust Engine CLI is a command-line tool that provides direct access to all Core API functionality. It’s perfect for automation, scripting, and quick operations without writing code.Installation
Install the CLI globally using npm:Getting Started
Once installed, you can use the CLI with thetrust-engine-cli command:
Available Commands
The CLI provides the following commands:register
Register a file with the Trust Engine
create-wallet
Create a new wallet for a user
link-wallet
Link a wallet to a user ID
find-wallet
Find a wallet by user ID or wallet address
search-file
Search for a file by its content hash
verify-identity
Initiate identity verification using Self.xyz
check-identity
Check the status of identity verification
submit-transaction
Submit a signed transaction to the network
Global Options
All commands support these global options:--json- Output results in JSON format for programmatic use--help- Show help information for any command
Examples
Quick File Registration
Identity Verification Workflow
JSON Output for Scripting
Configuration
The CLI connects tohttps://core-api-server.onrender.com by default. This is the production API endpoint for the Trust Engine Core API.
Error Handling
All commands return appropriate exit codes:0- Success1- Error (check the error message for details)
