Solana CLI
Last updated
Last updated
To interact with zkNEO's confidential functionality, you’ll need to install the Solana Command Line Interface (CLI).
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.
macOS and Linux Installation
Copy and paste the following command to download and install the Solana CLI:
Once installed, add Solana CLI to your path. Copy and paste this command to do so:
Windows Installation
If you’re using Windows PowerShell, follow these steps:
First, install Windows Subsystem for Linux (WSL) if you haven’t already. Follow 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.
To confirm Solana CLI was installed correctly, check the version by running:
You should see a version number, which means the installation was successful.
Now, set up Solana CLI to interact with the main Solana network, also called Mainnet Beta.
Run the following command to set the mainnet as your default network:
This ensures that any transactions you perform are on the main Solana network (as opposed to test networks).
Confirm the configuration by running:
You should see the URL https://api.mainnet-beta.solana.com
listed under RPC URL.
To check that both Solana CLI and SPL Token CLI tools are ready, run:
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 for further details.