# 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/en/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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://xai-foundation.gitbook.io/xai-network/en/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?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
