Difference between revisions of "Avalanche key create"

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
  Key created
 
  Key created
 
  .../...
 
  .../...
 +
 +
testname
 +
 +
 +
[[avalanche key create admin]]
 +
 +
[[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>
 +
 +
 +
 +
 +
  
  
Line 17: Line 53:
  
 
== See also ==
 
== See also ==
 +
* {{avax logs}}
 
* {{avalanche-cli}}
 
* {{avalanche-cli}}
 
* {{avalanchego}}
 
* {{avalanchego}}
  
 
[[Category:Avalanche]]
 
[[Category:Avalanche]]

Latest revision as of 13:06, 20 April 2023

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: