A command-line tool for common Stellar development tasks.
🌐 Website: https://astral-loom-site.vercel.app
astral-loom-cli is a command-line interface for Stellar dApp developers to quickly perform common tasks like creating testnet accounts and decoding XDR envelopes without leaving the terminal.
account create: Create and fund testnet accounts easily.xdr decode: Decode and pretty-print transaction XDR envelopes (with built-inBigIntserialization support).balance <publicKey>: Query an account's live balance directly on the terminal.submit <xdr>: Submit signed transactions to the network.soroban-invoke <contractId> <method> [args...](NEW!): Easily simulate Soroban smart contracts directly from your terminal.
astral-loom-cli is the terminal interface for the Astral Loom ecosystem, powered by astral-loom-kit under the hood.
flowchart TD
%% Base Layer
Stellar[Stellar Network]
Horizon[Horizon API]
Soroban[Soroban RPC]
Stellar --- Horizon
Stellar --- Soroban
%% Official SDK
SDK(("@stellar/stellar-sdk"))
Horizon --> SDK
Soroban --> SDK
%% Astral Loom Layer
subgraph Astral Loom Ecosystem
Kit[astral-loom-kit<br/>Core TypeScript SDK]
CLI[astral-loom-cli<br/>CLI Tooling]
Widgets[astral-loom-widgets<br/>React UI Components]
end
SDK --> Kit
%% Dependencies within the ecosystem
Kit --> CLI
Kit --> Widgets
%% Wallets
Wallets[Wallet Extensions<br/>Freighter, Albedo, xBull]
Wallets -.->|WalletAdapter| Kit
%% End Users
Backend[Backend / dApp Devs] --> Kit
Ops[DevOps / Power Users] --> CLI
Frontend[Frontend / React Devs] --> Widgets
classDef official fill:#e3f2fd,stroke:#1565c0,stroke-width:2px,color:#000
classDef loom fill:#f3e5f5,stroke:#7b1fa2,stroke-width:2px,color:#000
classDef users fill:#e8f5e9,stroke:#2e7d32,stroke-width:2px,color:#000
class SDK official
class Kit,CLI,Widgets loom
class Backend,Ops,Frontend users
Clone the repo and build locally:
git clone https://github.com/astral-loom/astral-loom-cli.git
cd astral-loom-cli
npm install
npm run build
npm linkUse the loom command to access utilities:
# Create and fund a testnet account
loom account create
# Decode a base64 XDR string
loom xdr decode <xdrString>
# Check balance
loom balance GA...
# Simulate a Soroban smart contract
loom soroban-invoke CC... increment 1Check out the examples/usage-walkthrough.md for a complete terminal walkthrough showing real outputs of the CLI in action against the Stellar testnet.
We are committed to fostering a welcoming environment. Please read our Code of Conduct before participating. If you discover a vulnerability, please review our Security Policy for reporting instructions.
Join the discussion and get support:
- Community Link: Stellar Developer Discord
- Telegram: Join our Telegram group to ask questions, share what you're building, or get help contributing.
We welcome contributions! Please see our CONTRIBUTING.md for details on how to get started.
