stellar-registry-cli
Command line interface for managing smart contract deployments through the Stellar Registry system. This tool enables deploying and installing contracts that have been published to the Stellar Registry.
Installation
Install directly from the repository:
Commands
Deploy
Deploy a published contract with optional initialization parameters:
Options:
--deployed-name: Name to give this contract instance--published-name: Name of the published contract to deployCONTRACT_FN_AND_ARGS: Optional initialization function and arguments
Install
Install a deployed contract's Wasm and contract ID locally:
Options:
DEPLOYED_NAME: Name of the deployed contract to install--out-dir (-o): Directory to save the contract files- Creates:
<out_dir>/<name>.wasmand<out_dir>/contract_id.txt
- Creates:
Configuration
The CLI can be configured through environment variables:
STELLAR_REGISTRY_CONTRACT_ID: Override the default registry contract IDSOROBAN_NETWORK: Network to use (e.g., "testnet")SOROBAN_RPC_URL: Custom RPC endpoint (default: https://soroban-testnet.stellar.org:443)SOROBAN_NETWORK_PASSPHRASE: Network passphrase (default: Test SDF Network ; September 2015)
Example Usage
- Deploy a token contract:
- Install the deployed contract:
Registry Contract
The registry contract is deployed on testnet at:
CC2FLEJRHB2Q5JOAJNPFZU25ZAY6IFYXJL7UQ5GF36F3G5QZ4CQILUID
See Also
- Registry Guide - Detailed guide on using the registry system
- Environment Configuration - Configuration details for different networks