square-terminalTreza CLI

Command-line interface for the Treza platform

npm versionarrow-up-right Licensearrow-up-right Documentationarrow-up-right


Manage secure enclaves, verify KYC proofs, and interact with the Treza platform directly from your terminal.

Installation

npm install -g @treza/cli

Or with yarn:

yarn global add @treza/cli

Quick Start

# Configure the CLI with your wallet
treza config init

# List your enclaves
treza enclave list

# Create a new enclave
treza enclave create --name "My Secure Enclave" --region us-east-1

# Verify a KYC proof
treza kyc verify <proof-id>

Commands

Configuration

Enclaves

KYC Verification

Tasks

Providers

Global Options

Configuration

The CLI stores configuration in a local config file:

Setting
Description
Default

walletAddress

Your Ethereum/Solana wallet address

Required

apiUrl

Treza API endpoint

https://app.trezalabs.com

apiKey

Optional API key for authenticated requests

-

Configuration is stored at:

  • macOS: ~/Library/Preferences/treza-cli-nodejs/config.json

  • Linux: ~/.config/treza-cli-nodejs/config.json

  • Windows: %APPDATA%/treza-cli-nodejs/config.json

Examples

Create and manage an enclave workflow

Verify KYC proofs

Scripting and automation

Development

Support

License

MIT License - see LICENSE file for details.

Last updated