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

55 lines
2.3 KiB
Plaintext

---
title: snrd init
description: Initialize validators's and node's configuration files.
---
## Usage
```shell
snrd init [moniker] [flags]
```
## Flags
<TypeTable
type={{
"chain-id": { type: "string", description: "genesis file chain-id, if left blank will be randomly created" },
"default-denom": { type: "string", description: "genesis file default denomination, if left blank default value is 'stake'" },
"help": { type: "string", description: "for init" },
"home": { type: "string", default: "/Users/prad/.sonr", description: "node's home directory" },
"initial-height": { type: "integer", default: "1", description: "specify the initial block height at genesis" },
"overwrite": { type: "string", description: "the genesis.json file" },
"recover": { type: "string", description: "seed phrase to recover existing key instead of creating" },
}}
/>
## Global Flags
<TypeTable
type={{
"broadcast-mode": { type: "string", default: "sync", description: "Transaction broadcasting mode (sync|async)" },
"fees": { type: "string", description: "Fees to pay along with transaction; eg: 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)" },
"keyring-backend": { type: "string", default: "os", description: "Select keyring's backend" },
"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: "string", description: "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: "string", description: "out full stack trace on errors" },
}}
/>
## Examples
### Basic usage
```shell
snrd init
```
## See Also
- [snrd](./snrd) - Parent command