CLI Tools Reference
This page documents the command-line tools available in the Lithosphere ecosystem: the lithod node binary and the create-litho-app project scaffolding tool.
lithod
lithod is the core binary for running a Lithosphere blockchain node. It is built on top of the following frameworks:
Cosmos SDK
Application framework providing modules for staking, governance, bank, auth, and more.
CometBFT
Byzantine Fault Tolerant consensus engine (formerly Tendermint Core).
LithoVM
EVM-compatible virtual machine enabling Solidity smart contract execution on Lithosphere.
Source repository: github.com/KaJLabs/lithosphere/litho-chain
A pre-built binary is available for Linux x86_64. For other platforms, build from source using the instructions below.
Building from Source
Requirements
Go
>= 1.22
Required for compilation.
git
any
To clone the repository.
make
any
GNU Make for the build system.
Build Steps
# Clone the repository
git clone https://github.com/KaJLabs/lithosphere.git
cd lithosphere/litho-chain
# Build the binary
./build.sh
# Generate checksums for verification
./checksums.shAfter a successful build, the following outputs are produced:
lithod
The compiled node binary, ready to run.
checksums.txt
SHA-256 checksums for verifying binary integrity.
You can also use make install to place the binary directly in $GOPATH/bin:
Verify the installation:
Key Commands
Below are the essential lithod commands for node operation.
lithod init
lithod initInitialize a new node with a moniker and chain ID:
<moniker>
A human-readable name for your node (e.g., my-node-01).
--chain-id
The identifier of the target chain (e.g., lithosphere-1).
This command creates the default directory structure at ~/.lithod/, including configuration files (app.toml, config.toml, genesis.json), the data directory, and the keyring.
lithod start
lithod startStart the node and begin syncing with the network:
The node connects to peers, replays blocks from genesis (or a snapshot), and begins participating in consensus once fully synced.
Common flags:
--home <path>
Override the default home directory (~/.lithod/).
--log_level <level>
Set log verbosity (info, debug, warn, error).
--p2p.seeds <seeds>
Comma-separated list of seed node addresses.
--rpc.laddr <addr>
RPC listen address (default: tcp://127.0.0.1:26657).
lithod version
lithod versionPrint the current version and build information:
Example output:
Use lithod version --long for detailed build metadata including Go version, commit hash, and build tags.
create-litho-app
create-litho-app is a CLI scaffolding tool for bootstrapping new Lithosphere projects. It provides an interactive setup experience that lets you choose a project template, configures dependencies automatically, and gets you to a working project in seconds.
Built with: tsup (a TypeScript bundler powered by esbuild).
Features
Project template selection -- Choose from available Lithosphere project templates (e.g., full-stack dApp, smart contract workspace, API integration).
Automatic dependency setup -- Installs all required dependencies after scaffolding.
Sensible defaults -- Pre-configured TypeScript, linting, formatting, and testing out of the box.
Monorepo-aware -- Generated projects integrate seamlessly with the Lithosphere monorepo structure.
Usage
Run the tool directly with npx -- no global installation required:
The interactive CLI will guide you through the following steps:
Project name -- Enter a name for your new project.
Template selection -- Choose a project template from the available options.
Configuration -- Answer any template-specific prompts (e.g., chain ID, RPC endpoint).
Dependency installation -- Dependencies are installed automatically via
pnpm.
Once complete, navigate into the new project directory and start developing:
Example
Next Steps
Developer Setup -- Set up the full monorepo development environment.
Validator Setup -- Configure and run a validator node.
Last updated