> For the complete documentation index, see [llms.txt](https://xai-foundation.gitbook.io/xai-network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xai-foundation.gitbook.io/xai-network/kn/about-xai/sentry-key-purchase-and-setup/step-3-complete-requirements-to-accrue-esxai/step-3b-start-the-sentry-wallet-a.k.a-operator/how-to-create-a-wallet-using-the-cli.md).

# How to create a wallet using the CLI

If you do not already have a wallet and need to create a wallet to designate as the Operator, you can do so via the CLI using the steps below.

{% hint style="info" %}
If you do not want to use the CLI to create a new wallet to designate as the Operator, here are a couple other options:

* You may use the same private key as the wallets you used to purchase Sentry Keys.
* You may create a wallet using [Metamask](https://metamask.io/), then export the private key and paste it into the CLI command discussed on the previous page, called `boot-operator`.
  {% endhint %}

1. Type in the command `create-mnemonic`. Then hit 'Enter'.
2. Type in the command `get-private-key-from-mnemonic`. Then hit 'Enter'.
3. Enter the mnemonic that was generated when you typed in the `create-mnemonic` command. Then hit 'Enter'.
4. Hit 'Enter' again. You will notice a private key get generated.
5. Now you can use the private key that's generated in step 4 and use it in the `boot-operator` steps above.
6. If you want to obtain the public key to [fund this wallet](/xai-network/kn/about-xai/sentry-key-purchase-and-setup/step-3-complete-requirements-to-accrue-esxai/step-3a-set-up-and-fund-the-sentry-wallet.md), type in the command `get-public-key-from-private-key`. Then hit 'Enter'.

<figure><img src="/files/O2mqi68dbif0fYARSQ0P" alt=""><figcaption></figcaption></figure>
