From 937366f04af70351f3c43e3010934adb78aac9e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Mon, 31 May 2021 14:33:54 +0200 Subject: [PATCH] lotus-wallet: Describe setup with auth --- cmd/lotus-wallet/main.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/cmd/lotus-wallet/main.go b/cmd/lotus-wallet/main.go index 4e0f2a577..3e3aa1a58 100644 --- a/cmd/lotus-wallet/main.go +++ b/cmd/lotus-wallet/main.go @@ -52,6 +52,17 @@ func main() { Name: "lotus-wallet", Usage: "Basic external wallet", Version: build.UserVersion(), + Description: ` +lotus-wallet provides a remote wallet service for lotus. + +To configure your lotus node to use a remote wallet: +* Run 'lotus-wallet get-api-key' to generate API key +* Start lotus-wallet using 'lotus-wallet run' (see --help for additional flags) +* Edit lotus config (~/.lotus/config.toml) + * Find the '[Wallet]' section + * Set 'RemoteBackend' to '[api key]:http://[wallet ip]:[wallet port]' + (the default port is 1777) +* Start (or restart) the lotus daemon`, Flags: []cli.Flag{ &cli.StringFlag{ Name: FlagWalletRepo, @@ -78,7 +89,7 @@ func main() { var getApiKeyCmd = &cli.Command{ Name: "get-api-key", - Usage: "Print API Key", + Usage: "Generate API Key", Action: func(cctx *cli.Context) error { lr, ks, err := openRepo(cctx) if err != nil { @@ -132,6 +143,7 @@ var runCmd = &cli.Command{ Hidden: true, }, }, + Description: "For setup instructions see 'lotus-wallet --help'", Action: func(cctx *cli.Context) error { log.Info("Starting lotus wallet")