> For the complete documentation index, see [llms.txt](https://zkneo.gitbook.io/zkneo/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zkneo.gitbook.io/zkneo/setup/configuration/solana-cli.md).

# Solana CLI

To interact with ***zkNEO's*** confidential functionality, you’ll need to install the Solana Command Line Interface (CLI).

#### Step 1: Open Your Terminal

To start, open the terminal application:

* **macOS**: Open **Terminal** from Applications > Utilities.
* **Windows**: Use **PowerShell** or, for a Linux-like environment, install **Windows Subsystem for Linux (WSL)** and use **Ubuntu** or another Linux terminal.
* **Linux**: Open your system’s default terminal application.

#### Step 2: Install Solana CLI

**macOS and Linux Installation**

1. Copy and paste the following command to download and install the Solana CLI:

   ```bash
   sh -c "$(curl -sSfL https://release.solana.com/stable/install)"
   ```
2. Once installed, add Solana CLI to your path. Copy and paste this command to do so:

   ```bash
   export PATH="/home/$(whoami)/.local/share/solana/install/active_release/bin:$PATH"
   ```

**Windows Installation**

1. If you’re using **Windows PowerShell**, follow these steps:
   * First, install Windows Subsystem for Linux (WSL) if you haven’t already. Follow [Microsoft’s guide](https://docs.microsoft.com/en-us/windows/wsl/install) to set it up with Ubuntu.
   * Open your WSL terminal (e.g., Ubuntu) and run the same commands as the **macOS and Linux Installation** steps above to install Solana CLI within your WSL environment.

#### Step 3: Verify the Installation

To confirm Solana CLI was installed correctly, check the version by running:

```bash
solana --version
```

You should see a version number, which means the installation was successful.

#### Step 4: Configure Solana CLI for Mainnet

Now, set up Solana CLI to interact with the main Solana network, also called **Mainnet Beta**.

1. Run the following command to set the mainnet as your default network:

   ```bash
   solana config set --url https://api.mainnet-beta.solana.com
   ```

   * This ensures that any transactions you perform are on the main Solana network (as opposed to test networks).
2. Confirm the configuration by running:

   ```bash
   solana config get
   ```

   * You should see the URL `https://api.mainnet-beta.solana.com` listed under **RPC URL**.

#### Step 5: Verify Solana CLI and SPL Token CLI

1. To check that both Solana CLI and SPL Token CLI tools are ready, run:

   ```bash
   solana --version
   spl-token --version
   ```
2. Both commands should return version numbers, confirming the CLI is ready to use.

***

If any of the steps here don’t work as expected, try running through the commands again or refer to the [official Solana CLI documentation](https://docs.solanalabs.com/cli/install) for further details.<br>
