1

Install the Trust Engine CLI

Install the CLI globally to use it from anywhere in your terminal
npm install -g @trust-engine/cli@latest
Verify installation:
trust-engine-cli --version
Get help and see all available commands:
trust-engine-cli --help
2

Create a Wallet

Create a managed wallet that will own your registered files
⚠️ ONE-TIME OPERATION: This should only be performed once per user. The CLI will display the wallet address that you should save for future use.
Note: The userID must be unique across your entire application.
trust-engine-cli create-wallet --userID "your-unique-user-id-123"
3

Register a File

Register any file from your computer on the blockchainThe CLI automatically handles file reading, hash calculation, and metadata extraction. Simply point to your file:
trust-engine-cli register \
  --file ./my-document.pdf \
  --contentTitle "My Important Document" \
  --walletAddress "YOUR_WALLET_ADDRESS_FROM_STEP_2" \
  --walletType "managed" \
  --metadata "Registered via CLI"
4

Verify File Registration

Search for your registered file to confirm it’s on the blockchain
trust-engine-cli search-file --file ./my-document.pdf -w "YOUR_WALLET_ADDRESS_FROM_STEP_2"

Global Options

OptionDescription
--jsonOutput results in JSON format
--helpShow help for any command
--versionShow CLI version

What’s Next?