SolWipe logoSolWipeCheck Wallet
You might have SOL you don't know about. Check for free.
Getting Started Solana Development

Step-by-Step: Setting Up Your Solana Development Environment

SW
SolWipe Team
··3 min read

Setting up your Solana development environment is a crucial first step for anyone looking to build on the Solana blockchain. Whether you're a seasoned developer or a newcomer to the world of blockchain, having the right tools and configurations in place will make your development process smoother and more efficient. This guide will walk you through the essential steps to set up your Solana development environment, ensuring you have everything you need to start creating decentralized applications.

Required Tools for Development

Before diving into the installation process, it's essential to understand what tools you will need to set up your Solana development environment. Here’s a list of the primary tools that you’ll require:

  1. Rust: The primary programming language used for Solana smart contracts.
  2. Solana CLI: Command-line interface to interact with the Solana blockchain.
  3. Node.js: Useful for JavaScript-based projects and for running local servers.
  4. Anchor: A framework that simplifies Solana smart contract development.

Having these tools installed will lay the groundwork for your development efforts. Next, we will go through the steps to install Rust and the Solana CLI.

Installing Rust and Solana CLI

Step 1: Install Rust

To install Rust, you’ll need to use rustup, the recommended way to install the Rust programming language. Follow these steps:

  1. Open your terminal.

  2. Run the following command to download and install Rust:

    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
    
  3. Follow the on-screen instructions. By default, this will install the latest stable version of Rust.

  4. After installation, ensure that your PATH is updated by running:

    source $HOME/.cargo/env
    
  5. Verify that Rust is installed correctly by checking the version:

    rustc --version
    

Step 2: Install Solana CLI

With Rust installed, the next step is to install the Solana Command-Line Interface (CLI). This tool is essential for interacting with the Solana blockchain.

  1. In your terminal, run the following command to install the Solana CLI:

    sh -c "$(curl -sSfL https://release.solana.com/v1.14.1/install)"
    

    Note: Replace v1.14.1 with the latest stable version if necessary.

  2. After the installation, you need to update your PATH. Add the following line to your shell configuration file (e.g., .bashrc, .zshrc):

    export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH"
    
  3. Reload your terminal or run:

    source ~/.bashrc
    
  4. To confirm that the Solana CLI is installed correctly, execute:

    solana --version
    

Step 3: Set up Your Solana Cluster

After installing the CLI, you’ll want to configure it to connect to a Solana cluster. You have several options, including the mainnet, testnet, and devnet. For development purposes, it's recommended to use the devnet.

Run the following command:

solana config set --url https://api.devnet.solana.com

To verify your configuration, check the current settings with:

solana config get

Configuring Anchor for Your Project

Anchor is an essential tool for simplifying smart contract development on Solana. To set up Anchor, follow these steps:

Step 1: Install Anchor

To install Anchor, ensure you have Node.js installed (preferably the latest LTS version). Then, run the following command in your terminal:

cargo install --git https://github.com/coral-xyz/anchor.git --tag v0.26.0 anchor-cli

Step 2: Initialize Your Anchor Project

With Anchor installed, you can now create a new project.

  1. Navigate to your desired directory in the terminal.

  2. Run the following command to create a new Anchor project:

    anchor init my_solana_project
    

    Replace my_solana_project with your preferred project name.

  3. Navigate into your project directory:

    cd my_solana_project
    

Step 3: Build Your Project

Once your project is initialized, you can build it to ensure everything is set up correctly. Run:

anchor build

If the build is successful, you’re ready to start developing your smart contracts.

Verifying Your Setup

After installing Rust, the Solana CLI, and Anchor, it’s crucial to verify that your development environment is functioning correctly. Follow these steps to check everything is in place.

Step 1: Check Rust Installation

To confirm Rust is installed and working:

rustc --version

Step 2: Verify Solana CLI Installation

Run the following command to ensure the Solana CLI is operational:

solana --version

Step 3: Test Anchor Installation

Finally, check if Anchor is installed correctly by running:

anchor --version

Step 4: Create a Test Token Account

To further confirm that everything is set up correctly, try creating a test token account. You can do this by running the following commands:

  1. Generate a new keypair:

    solana-keygen new --outfile ~/my_test_keypair.json
    
  2. Airdrop some SOL to your account on the devnet:

    solana airdrop 2 ~/my_test_keypair.json
    
  3. Check your balance:

    solana balance
    

If all these commands execute successfully, your Solana development environment is fully set up and ready for development.

Setting up your Solana development environment may seem daunting at first, but following these steps will help you navigate the process easily. With the right tools at your disposal, you can start building innovative applications on the Solana blockchain.

If you encounter any issues or want to learn more about managing your token accounts, consider checking out our guides on how to close token accounts and what are token accounts.

To maximize your SOL and learn about useful utilities, visit the SolWipe guide and understand how rent exemption explained can benefit your token management strategy.

Ready to get started? Dive into Solana development today with SolWipe, your go-to resource for managing and optimizing your Solana experience!

Recover your hidden SOL now

Connect your wallet, scan for free, and claim your locked SOL in under 30 seconds.

Find My Hidden SOL →

More from SolWipe

View all articles →
Advanced Wallet Features Multisig

10 Best Tools for Managing Squads on Solana

Squad management in the Solana ecosystem is essential for teams looking to streamline their operations and enhance collaboration. With the rise of decentralized finance and blockchain applications, managing squads effectively has become crucial. Utilizing the

Feb 20, 2026
Decentralized Storage Computing Filecoin

10 Best Use Cases for the Akash Network in 2026

The Akash Network is revolutionizing the way we think about cloud computing by providing a decentralized platform for hosting applications and services. By connecting users in need of cloud resources with providers who have excess computing power, Akash Networ

Feb 20, 2026
Privacy Cryptocurrency Mixers Zeroknowledge

10 Crypto Mixers You Should Know About in 2026

When it comes to maintaining crypto anonymity, using top crypto mixers is a crucial step for individuals looking to enhance their privacy in transactions. As the landscape of cryptocurrency continues to evolve, ensuring your digital footprint remains discreet

Feb 20, 2026
Solana Blockchain Explorers Analytics

10 Must-Know Solana Data Tools for Investors in 2023

Investing in the Solana blockchain can be both exciting and daunting. With its rapid growth and innovative technology, the need for effective Solana data tools for investors is more crucial than ever. These tools help you make informed decisions, analyze marke

Feb 20, 2026
Blockchain Technology Fundamentals Blockchains

10 Ways Consensus Algorithms Impact Blockchain Performance

Consensus algorithms are a foundational element of blockchain technology, determining how transactions are validated and how nodes in the network come to an agreement. Understanding how consensus algorithms impact blockchain performance is crucial for anyone i

Feb 20, 2026
Sol Investing Fundamentals Buying

2023 Solana Investment Trends: What You Need to Know

The Solana blockchain has gained significant traction in the crypto space, and understanding the Solana investment trends for 2023 can help you make informed decisions. As the ecosystem evolves, it’s essential to stay updated on market dynamics, emerging use c

Feb 20, 2026