helium / helium-wallet-rs

Rust implementation of a helium wallet CLI
Apache License 2.0
255 stars 114 forks source link

Setup wallet in a non-interactive way #91

Closed PeGa closed 3 years ago

PeGa commented 3 years ago

When setting up the wallet for the first time, I noticed that it asks for a password and there seems not to be a way to feed a password to it in order to deploy the wallet programmatically / in a DevOps way.

Not being able to find a way, just tried:

$ echo MyPass | helium-wallet create basic --network testnet
Password:

But it sits there.

Am I missing something? Is this feature planned? Thanks in advance.

lthiery commented 3 years ago

You might want to look at this project for that kind of problem.

https://github.com/helium/blockchain-node

But also, you can use the environmental variable HELIUM_WALLET_PASSWORD to do what you want with the CLI wallet.

PeGa commented 3 years ago

This solves the issue. Thanks a lot.