All apps/Stellar CLI

Stellar CLI

stellar-cli

Command-line interface for interacting with the Stellar network

Runs as stellar|macOS, Linux, Windows|developers.stellar.org

Command form

ai-draft · 4 tasks · 17 fields

Build and deploy Soroban smart contracts with the Stellar CLI. Other subcommands (keys, tx, invoke, network) are not covered; signing options other than the source account are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui stellar-cli

stellar contract build

Build a contract

Build every cdylib crate in the Cargo manifest for the wasm32 target.

Build a contractExample values, fixed in this page — nothing here reaches a terminal
Basic
Package
string
Copy wasm files to
directory
TasksEach one presets the form for one job
Build contracts
packageout_dir
Show build commands
packageprint_only
ParametersOnly these flags are editable in the form
Cargo.toml path
path
--manifest-path
Package
string
--package
Cargo profile
string
--profile
Copy wasm files to
path
--out-dir
Features
string
--features
All features
boolean
--all-features
Locked Cargo.lock
boolean
--locked
Print commands only
boolean
--print-commands-only

stellar contract deploy

Deploy a contract

Deploy a wasm contract to a network. Sends a signed transaction using the source account.

Deploy a contractExample values, fixed in this page — nothing here reaches a terminal
Basic
WASM file*
file
Source account*
string
Network*
string
Contract alias
string
TasksEach one presets the form for one job
Deploy a wasm file
wasmsource_accountnetworkalias
Build transaction only
wasmsource_accountnetworkbuild_only
ParametersOnly these flags are editable in the form
WASM file
path
--wasm
Installed WASM hash
string
--wasm-hash
Source account
An identity name or public key. Do not paste a secret key here; it would land in shell history.
string
--source-account-s
Network
string
--network-ntestnetmainnet
Contract alias
Overwrites an existing alias without asking.
string
--alias
RPC URL
url
--rpc-url
Network passphrase
string
--network-passphrase
Build transaction only
boolean
--build-only
Ignore safety checks
boolean
--ignore-checks-i
SourcesEvery flag above is checked against these
docs
**Usage:** `stellar contract build [OPTIONS] build <COMMAND>` - `--features <FEATURES>` — Build with the list of features activated, space or comma separated - `--all-features` — Build with the all features activated - `--manifest-path <MANIFEST_PATH>` — Path to Cargo.toml - `--package <PACKAGE>` — Package to build - `--profile <PROFILE>` — Build with…
manual2026-10-27

github.com

docs
**Usage:** `stellar contract deploy [OPTIONS] --source-account <SOURCE_ACCOUNT> [-- <CONTRACT_CONSTRUCTOR_ARGS>...]` - `--wasm <WASM>` — WASM file to deploy. - `--wasm-hash <WASM_HASH>` — Hash of the already installed/deployed WASM file - `--alias <ALIAS>` — The alias that will be used to save the contract's id. - `-i`, `--ignore-checks` — Whether to ignore…
manual2026-10-27

github.com

Before it fills your prompt, Otty checks the installed stellar against its version. A form that does not match your version is not offered.