Difference between revisions of "Avalanche key create"

From wikieduonline
Jump to navigation Jump to search
Line 7: Line 7:
 
  Key created
 
  Key created
 
  .../...
 
  .../...
 +
 +
testname
 +
 +
[[avalanche key]] create --help
 +
<pre>
 +
 +
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")
 +
</pre>
 +
 +
 +
 +
 +
  
  

Revision as of 13:13, 17 April 2023

avalanche key create
avalanche key create testname
Generating new key...
Key created
.../...
testname
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

Advertising: