Skip to main content
The thru-cli command is the main command-line interface for interacting with the Thru network. You can use it to configure RPC connections, deploy and upgrade programs, manage tokens and name service state, and inspect ABI data.

Prerequisites

Command Areas

Network Commands

Configure named RPC endpoints and choose the default network for future commands.

Token Commands

Create mints, manage token accounts, and transfer, mint, or burn tokens.

Name Service Commands

Create registrars, register subdomains, manage records, and derive name service addresses.

Registrar Commands

Manage pricing, lease lifecycle, and registry administration for name service registrars.

ABI Commands

Inspect ABI definitions and generate language-specific bindings from ABI files.

Typical Workflow

  1. Configure an RPC endpoint with network commands.
  2. Build and deploy a program by following the program development guides.
  3. Use the relevant command reference for the subsystem you are working with, such as tokens or name service.
Most commands accept --network or --url so you can target a specific RPC endpoint without changing your default profile.