# CLI Program Operation Guide

#### 1. Wallet Command

You can use the following command to view wallet related instructions

`node-cli wallet`

**Import wallet address**

If you already have a wallet address, use the following command to import the wallet: (Please delete the leading 0x from the wallet private key)

`node-cli wallet import {private_key}`

**Create new wallet**

You can create a new wallet using the following command:

`node-cli wallet create`

After the command is successfully executed, you will see your wallet mnemonic, please save it safely. We will not be able to recover your wallet if it is lost.

**Export current wallet**

You can use the following command to export the private key of the current wallet:

`node-cli wallet export`

**View the current wallet address**

You can use the following command to view the current wallet address:

`node-cli wallet show`

**Delete the current wallet address**

If you want to change a wallet address, you can use the following command to delete the current wallet address:

`node-cli wallet delete`

#### 2. Nodes Command

**Query all nodes of the current wallet address**

How to get nodes? Click here <https://app.tabichain.com/>

`node-cli nodes list`

**Approve nodes**

If you want to accept some nodes and mine for them, please use the following command:

`node-cli nodes approve`

**Start mining**

Please use the following command to mine:

`node-cli nodes mining`

After running the mining command, you will see some printed information, please do not end the process.

You can use nohup, screen, supervisor, etc. to maintain the process. For example, use nohup:

`nohup node-cli nodes mining &`


---

# 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://tabichain.gitbook.io/tabi-or-captain-node/tutorial/captain-node-pre-mining-tutorial/cli-program-operation-guide.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.
