Files
sonr/docs/reference/commands/snrd.mdx
T

94 lines
3.4 KiB
Plaintext

---
title: snrd
description: The Sonr blockchain daemon (server) command
---
The main command for running and interacting with the Sonr blockchain node.
## Usage
```shell
snrd [command]
```
## Available Commands
| Command | Description |
|---------|-------------|
| `auth` | User authentication with Passkeys |
| `comet` | CometBFT subcommands |
| `config` | Utilities for managing application configuration |
| `debug` | Tool for helping with debugging your application |
| `export` | Export state to JSON |
| `genesis` | Application's genesis-related subcommands |
| `gov` | Governance utilities |
| `help` | Help about any command |
| `index-eth-tx` | Index historical eth txs |
| `init` | Initialize private validator, p2p, genesis, and application configuration files |
| `keys` | Manage your application's keys |
| `prune` | Prune app history states by keeping the recent heights and deleting old heights |
| `query` | Querying subcommands |
| `rollback` | Rollback Cosmos SDK and CometBFT state by one height |
| `snapshots` | Manage local snapshots |
| `start` | Run the full node |
| `status` | Query remote node for status |
| `tx` | Transactions subcommands |
| `version` | Print the application binary version information |
| `wallet` | Wallet operations |
## Flags
<TypeTable
type={{
"broadcast-mode": { type: "string", default: "sync", description: "Transaction broadcasting mode (sync|async)" },
"chain-id": { type: "string", description: "Specify Chain ID for sending Tx" },
"fees": { type: "string", description: "Fees to pay along with transaction (e.g., 10aatom)" },
"from": { type: "string", description: "Name or address of private key with which to sign" },
"gas-adjustment": { type: "float", default: "1", description: "Adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored" },
"gas-prices": { type: "string", description: "Gas prices to determine the transaction fee (e.g., 10aatom)" },
"help": { type: "boolean", description: "Help for snrd" },
"home": { type: "string", default: "~/.sonr", description: "Directory for config and data" },
"keyring-backend": { type: "string", default: "os", description: "Select keyring's backend (os|file|test)" },
"log_format": { type: "string", default: "plain", description: "The logging format (json|plain)" },
"log_level": { type: "string", default: "info", description: "The logging level (trace|debug|info|warn|error|fatal|panic|disabled or '*:&lt;level&gt;,&lt;key&gt;:&lt;level&gt;')" },
"log_no_color": { type: "boolean", description: "Disable colored logs" },
"node": { type: "string", default: "tcp://localhost:26657", description: "&lt;host&gt;:&lt;port&gt; to tendermint rpc interface for this chain" },
"trace": { type: "boolean", description: "Print out full stack trace on errors" },
}}
/>
## Examples
### Start a node
```shell
snrd start
```
### Query node status
```shell
snrd status
```
### Initialize a new node
```shell
snrd init my-node --chain-id sonrtest_1-1
```
### Get help for any command
```shell
snrd [command] --help
```
## See Also
- [snrd auth](./snrd_auth) - User authentication with Passkeys
- [snrd genesis](./snrd_genesis) - Genesis-related subcommands
- [snrd init](./snrd_init) - Initialize node configuration
- [snrd keys](./snrd_keys) - Manage application keys
- [snrd query](./snrd_query) - Query blockchain state
- [snrd tx](./snrd_tx) - Submit transactions