Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 1.26 KB

File metadata and controls

52 lines (38 loc) · 1.26 KB

CLI Reference

Setup

gocoon init --dir ./gocoon-data [--json] [--force]
gocoon config generate --wallet wallet.json --ton-config global.config.json [--out client-config.json]

Wallet

gocoon wallet generate [--pretty]
gocoon wallet info --wallet wallet.json [--config client-config.json]
gocoon wallet wait-funded --wallet wallet.json --config client-config.json
gocoon wallet withdraw --wallet wallet.json --config client-config.json --to <TON_ADDRESS>

wallet withdraw sends all remaining TON from the Cocoon node wallet using TON send mode 160 (128 + 32): carry all remaining balance and destroy if zero.

Runner

gocoon run --config client-config.json [--runner ./gocoon-runner] [-v 3]
gocoon status
gocoon models
gocoon chat --model Qwen/Qwen3-32B --prompt "Hello"
gocoon serve

By default the CLI talks to the local runner at http://127.0.0.1:10000.

Channel

gocoon channel info --config client-config.json
gocoon channel topup --amount <nanoTON>
gocoon channel withdraw
gocoon channel close

Channel commands call the local runner HTTP control plane.

Root Contract

gocoon root --config client-config.json
gocoon root --ton-config global.config.json

Outputs root contract parameters as JSON.