Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add explaination on how to change home folder globaly (backport #16620) #16622

Merged
merged 1 commit into from
Jun 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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