1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-09 17:22:21 +08:00

Added env var info to init, dameon help

See #1296

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
This commit is contained in:
Richard Littauer
2016-01-13 10:56:34 -05:00
parent 3c6a40a3a7
commit 6f222711d9
2 changed files with 17 additions and 1 deletions

View File

@ -100,6 +100,13 @@ Shutdown
To shutdown, kill, quit, or otherwise stop the daemon, send a SIGTERM signal.
If it persists, send a second. This can be done by pressing Ctrl+C twice.
IPFS_PATH environment variable
ipfs uses a repository in the local file system. By default, the repo is located
at ~/.ipfs. To change the repo location, set the $IPFS_PATH environment variable:
export IPFS_PATH=/path/to/ipfsrepo
DEPRECATION NOTICE
Previously, IPFS used an environment variable as seen below:

View File

@ -21,7 +21,16 @@ const nBitsForKeypairDefault = 2048
var initCmd = &cmds.Command{
Helptext: cmds.HelpText{
Tagline: "Initializes IPFS config file",
ShortDescription: "Initializes IPFS configuration files and generates a new keypair.",
ShortDescription: `
Initializes IPFS configuration files and generates a new keypair.
IPFS_PATH environment variable
ipfs uses a repository in the local file system. By default, the repo is located
at ~/.ipfs. To change the repo location, set the $IPFS_PATH environment variable:
export IPFS_PATH=/path/to/ipfsrepo
`,
},
Options: []cmds.Option{