diff --git a/cmd/gossamer/README.md b/cmd/gossamer/README.md index 107190f2be..31aae6cc92 100644 --- a/cmd/gossamer/README.md +++ b/cmd/gossamer/README.md @@ -36,7 +36,7 @@ gossamer version ### Initialize the node ```bash -gossamer init --chain westend --key alice --basepath /tmp/gossamer +gossamer init --chain westend --key alice --base-path /tmp/gossamer ``` This initialises the node with the default configuration for the `westend` chain with the `alice` keypair at the base-path `/tmp/gossamer`. @@ -45,7 +45,7 @@ This initialises the node with the default configuration for the `westend` chain Supported flags: --chain: The chain spec to initialise the node with. Supported chains are `polkadot`, `kusama`, `westend`, `westend-dev` and `westend_local`. It also accepts the chain-spec json path. --key: The keypair to use for the node. ---basepath: The working directory for the node. +--base-path: The working directory for the node. ``` The init command will create the following files in the base-path: @@ -63,7 +63,7 @@ The node configuration can be modified in the `config.toml` file. ### Start the node ```bash -gossamer --basepath /tmp/gossamer --key alice +gossamer --base-path /tmp/gossamer --key alice ``` **Note: The `init` command is optional. If the node is not initialised, it will be initialised with the default configuration.** @@ -71,7 +71,7 @@ gossamer --basepath /tmp/gossamer --key alice Here are the list of basic flags for the `gossamer` command: ``` ---basepath: The working directory for the node. +--base-path: The working directory for the node. --chain: The chain spec to initialise the node with. Supported chains are `polkadot`, `kusama`, `westend`, `westend-dev` and `westend_local`. It also accepts the chain-spec json path. --key: The keypair to use for the node. --name: The name of the node. diff --git a/cmd/gossamer/commands/account.go b/cmd/gossamer/commands/account.go index 92d06302d8..fc1f921872 100644 --- a/cmd/gossamer/commands/account.go +++ b/cmd/gossamer/commands/account.go @@ -24,15 +24,13 @@ var AccountCmd = &cobra.Command{ Use: "account", Short: "Create and manage node keystore accounts", Long: `The account command is used to manage the gossamer keystore. -Examples: +Examples: -To generate a new sr25519 account: - gossamer account generate --keystore-path=path/to/location --scheme=sr25519 -To generate a new ed25519 account: - gossamer account generate --ed25519 -To generate a new secp256k1 account: +To generate a new ed25519 account: + gossamer account generate --keystore-path=path/to/location --scheme=ed25519 +To generate a new secp256k1 account: gossamer account generate --keystore-path=path/to/location --scheme secp256k1 -To import a keystore file: +To import a keystore file: gossamer account import --keystore-path=path/to/location --keystore-file=keystore.json To import a raw key: gossamer account import-raw --keystore-path=path/to/location --keystore-file=keystore.json