user1679: yoroi and daedalus provide UI to generate new wallet address, how can i use cardano-wallet cli and cardano rest api to generate new address?

user7: Do you mean something like that?
# generate keys
cardano-cli address key-gen --verification-key-file payment.vkey --signing-key-file payment.skey
# build address from pubkey
cardano-cli address build --payment-verification-key-file payment.vkey --out-file payment.addr --mainnet


user28: Once you have your cardano-wallet runnig, you can create a new wallet using CLI with the following command:
$ cardano-wallet wallet create from-recovery-phrase "My Wallet"
Please enter a 15–24 word recovery-phrase sentence: <enter generated recovery-phrase words here>
(Enter a blank line if you do not wish to use a second factor.)
Please enter a 9–12 word recovery-phrase second factor: <skip or enter new recovery-phrase words here>
Please enter a passphrase: ****************
Enter the passphrase a second time: ****************
$

See more cardano-wallet cli commands.

To create a new wallet using cardano-wallet REST API, you can use the following command:
$ curl -vX POST http://localhost:8090/v2/wallets \
   -H "Content-Type: application/json; charset=utf-8" \
   -d '{
        "name": "Shelley",
        "mnemonic_sentence": ["identify", "screen", "lock", "bargain", "inch", "drop", "canyon", "flock", "dry", "zone", "wash", "argue", "system", "glory", "light"],
        "passphrase": "Secure Passphrase",
        "address_pool_gap": 20
        }'

See REST API documentation for more information about this call.

1679: <p>yoroi and daedalus provide UI to generate new wallet address, how can i use cardano-wallet cli and cardano rest api to generate new address?</p>
 7: <p>Do you mean something like that?</p>
<pre><code># generate keys
cardano-cli address key-gen --verification-key-file payment.vkey --signing-key-file payment.skey
# build address from pubkey
cardano-cli address build --payment-verification-key-file payment.vkey --out-file payment.addr --mainnet
</code></pre>
 28: <p>Once you have your <code>cardano-wallet</code> runnig, you can create a new wallet using CLI with the following command:</p>
<pre><code>$ cardano-wallet wallet create from-recovery-phrase &quot;My Wallet&quot;
Please enter a 15–24 word recovery-phrase sentence: &lt;enter generated recovery-phrase words here&gt;
(Enter a blank line if you do not wish to use a second factor.)
Please enter a 9–12 word recovery-phrase second factor: &lt;skip or enter new recovery-phrase words here&gt;
Please enter a passphrase: ****************
Enter the passphrase a second time: ****************
$
</code></pre>
<p>See <a href="https://github.com/input-output-hk/cardano-wallet/wiki/Wallet-command-line-interface#wallet-create-from-recovery-phrase" rel="nofollow noreferrer">more <code>cardano-wallet</code> cli commands</a>.</p>
<hr />
<p>To create a new wallet using <code>cardano-wallet</code> REST API, you can use the following command:</p>
<pre><code>$ curl -vX POST http://localhost:8090/v2/wallets \
   -H &quot;Content-Type: application/json; charset=utf-8&quot; \
   -d '{
        &quot;name&quot;: &quot;Shelley&quot;,
        &quot;mnemonic_sentence&quot;: [&quot;identify&quot;, &quot;screen&quot;, &quot;lock&quot;, &quot;bargain&quot;, &quot;inch&quot;, &quot;drop&quot;, &quot;canyon&quot;, &quot;flock&quot;, &quot;dry&quot;, &quot;zone&quot;, &quot;wash&quot;, &quot;argue&quot;, &quot;system&quot;, &quot;glory&quot;, &quot;light&quot;],
        &quot;passphrase&quot;: &quot;Secure Passphrase&quot;,
        &quot;address_pool_gap&quot;: 20
        }'
</code></pre>
<p>See <a href="https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/postWallet" rel="nofollow noreferrer">REST API documentation</a> for more information about this call.</p>
