Skip to content

Commit

Permalink
docs: add explaination on how to change home folder globaly (#16620)
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt authored Jun 20, 2023
1 parent abae256 commit 3aab81f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion docs/docs/run-node/01-run-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ Before actually running the node, we need to initialize the chain, and most impo
simd init <moniker> --chain-id my-test-chain
```

The command above creates all the configuration files needed for your node to run, as well as a default genesis file, which defines the initial state of the network. All these configuration files are in `~/.simapp` by default, but you can overwrite the location of this folder by passing the `--home` flag.
The command above creates all the configuration files needed for your node to run, as well as a default genesis file, which defines the initial state of the network.

:::tip
All these configuration files are in `~/.simapp` by default, but you can overwrite the location of this folder by passing the `--home` flag to each commands,
or set an `$APPD_HOME` environment variable (where `APPD` is the name of the binary).
:::

The `~/.simapp` folder has the following structure:

Expand Down
3 changes: 2 additions & 1 deletion tools/confix/cmd/home.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import (
func HomeCommand() *cobra.Command {
return &cobra.Command{
Use: "home",
Short: "Outputs the string being used as the home path. No home directory is set when using the tool standalone.",
Short: "Outputs the folder used as the binary home. No home directory is set when using the tool standalone.",
Long: `Outputs the folder used as the binary home. In order to change the home directory path, set the $APPD_HOME environment variable, or use the "--home" flag.`,
Args: cobra.NoArgs,
Run: func(cmd *cobra.Command, args []string) {
clientCtx := client.GetClientContextFromCmd(cmd)
Expand Down

0 comments on commit 3aab81f

Please sign in to comment.