avalanche key create

From wikieduonline
Jump to navigation Jump to search

avalanche key create
avalanche key create testname
Generating new key...
Key created
.../...
testname


avalanche key create admin
avalanche key create --help
 
The key create command generates a new private key to use for creating and controlling
test Subnets. Keys generated by this command are NOT cryptographically secure enough to
use in production environments. DO NOT use these keys on Mainnet.

The command works by generating a secp256 key and storing it with the provided keyName. You
can use this key in other commands by providing this keyName.

If you'd like to import an existing key instead of generating one from scratch, provide the
--file flag.

Usage:
  avalanche key create [keyName] [flags]

Flags:
      --file string   import the key from an existing key file
  -f, --force         overwrite an existing key with the same name
  -h, --help          help for create

Global Flags:
      --config string      config file (default is $HOME/.avalanche-cli.json)
      --log-level string   log level for the application (default "ERROR")




 avalanche key list
Use the arrow keys to navigate: ↓ ↑ → ←
? Choose network for which to list addresses:
  ▸ Mainnet
    Fuji
    Local Network

See also[edit]

Advertising: