Courses

Using Solana CLI and SDKs
Solana · Chapter 9

Using Solana CLI and SDKs

A command-line interface (CLI) lets you work from a terminal. An SDK is a library that helps application code talk to the network. Both use an RPC endpoint: a server that accepts network queries.

The basics

  • The Solana CLI can show your selected network, address and balance.
  • The commands below inspect configuration and then select Devnet. Run them only after installing the CLI and configuring a development wallet.
  • For app code, follow the current official SDK documentation. Keep examples and installed package versions aligned.

Small example

solana config get
solana config set --url devnet
solana address
solana balance

Try it yourself

Run the commands and check that the configured URL says Devnet. Explain why a balance query against another network might give a different result.

Read more in the official documentation

@ Daniel Burlacu