docs/02_cleos/03_command-reference/wallet/create.md
Creates a wallet with the specified name. If no name is given, the wallet will be created with the name 'default'
None
-n, --name TEXT - The name of the new wallet-f, --file TEXT - Name of file to write wallet password output to. (Must be set, unless "--to-console" is passed--to-console - Print password to consolecleos wallet create [OPTIONS]
Where
Note: The arguments and options enclosed in square brackets are optional.
Create a new wallet locally.
The following information shows the different positionals and options you can use with the cleos wallet create command:
-h, --help - Print this help message and exit
-n, --name TEXT - The name of the new wallet, if blank the name is default
-f, --file TEXT - Name of file to write wallet password output to. Must be set, unless "--to-console" is passed
--to-console - Print password to console.
cleos and keosd.
[[info | Note]]
| Cleos and keosd are bundled with the EOSIO software. Installing EOSIO will also install the cleos and keosd command line tools.default and output the wallet password to the screencleos wallet create --to-console
Where
--to-console = Tells the cleos wallet create command to print the wallet password to the console.
Example Output
Creating wallet: default
Save password to use in the future to unlock this wallet.
Without password imported keys will not be retrievable.
"PW5HuN7hkCBdMNQAa8z3NuThp3LSDtjv77odQYs5t2wgghJq4MUxo"
my_wallet and output the wallet password to a file called my_wallet_password.txtcleos wallet create --name my_wallet --file my_wallet_passwords.txt
Where
--name my_wallet = Tells the cleos wallet create command to create a wallet called my_wallet_password.txt
--file my_wallet_passwords.txt = Tells the cleos wallet create command to store the password in a file called my_wallet_password.txt.
Example Output
Creating wallet: my_wallet
Save password to use in the future to unlock this wallet.
Without password imported keys will not be retrievable.
saving password to my_wallet_passwords.txt
cat my_wallet_passwords.txt
Example Output
PW5JZaEQXoTKWZRg313aTYS7iNh2jMH4Xs7zWS3vrTZ4p5hCSFGFH(base)
cleos wallet list
Example Output
Wallets:
[
"default *",
"my_wallet *"
]