ScopeBots

ScopeBots is no longer updated. Listings were last checked in November 2026, so confirm prices and terms on each maker's own site.

All tools / Guides

Solana CLI 4.5 drops cargo-build-sbf: how to fix builds

Agave 4.5 no longer bundles cargo-build-sbf. How to fix "no such command", and where Anchor, Surfpool and RustRover's plugin fit now.

Updated Nov 17, 2026

Documentation-based guide: code examples are from the makers' docs and weren't run by us. Checked against each maker's own pages on Nov 17, 2026.

Starting with Agave 4.5, the Solana CLI release no longer includes `cargo-build-sbf` and `cargo-test-sbf`, so after you upgrade, `cargo build-sbf` (and anything that calls it, like `anchor build`) can fail with "no such command" or quietly use an old copy. The fix is one `cargo install`. The rest of the local stack is shifting too: Anchor now runs tests on Surfpool by default, and JetBrains has an experimental Solana plugin for RustRover that drives Anchor and Surfpool from the IDE.

Contents

Quick answer

JobToolWhat to know now
Keys, clusters, deploysSolana CLI (Agave)4.5 stops bundling the build tools and drops prebuilt Windows and Intel Mac binaries
Compile programs`cargo-build-sbf`Install it yourself: `cargo install cargo-build-sbf --force --locked`
Program frameworkAnchor`anchor build` uses `cargo build-sbf`; since 1.0, `anchor test` and `anchor localnet` use Surfpool
Local networkSurfpoolDrop-in replacement for `solana-test-validator` that pulls mainnet accounts on demand
IDERustRover Solana pluginExperimental; Anchor projects only; RustRover is paid for commercial use

All five are free to use except RustRover for commercial work. Our Solana smart-contract tools page lists them with the sources for their Solana support.

What changed in Solana CLI 4.5?

Anza's changelog lists these under "CLI, Breaking" for 4.5.0 Source: Agave CHANGELOG:

Timing: on crates.io, `solana-cli` 4.5.0-beta.0 was published on Nov 6, 2026, and the newest non-beta release is 4.4.1 from Nov 5 Source: crates.io solana-cli. Anza's install page already shows the v4.5.0-beta.0 install command and explains that you can use the channel names `stable`, `beta` or `edge` instead of a version Source: Anza install docs. So if you install from the beta channel or a 4.5 tag, you get the new behavior now; stable users will get it when 4.5 is promoted.

How do I fix "no such command: build-sbf"?

Anza's own instructions Source: Agave CHANGELOG:

The single install gives you both `cargo-build-sbf` and `cargo-test-sbf`. Run `which` to make sure you aren't picking up a stale copy left on your `PATH` by an older Solana install: the changelog warns that builds can "silently use an older copy." Releases now come from the separate cargo-build-sbf repository; on crates.io, version 4.6.0 was published on Nov 7, 2026 Source: crates.io cargo-build-sbf.

Two things in that repo's README are worth knowing while you're there Source: cargo-build-sbf README:

In CI, add the `cargo install` step next to your Solana CLI install, and cache `~/.cargo/bin` so you don't rebuild it on every run.

Anchor: what the build change means for anchor build

Anchor has used `cargo build-sbf` as its default build command since 0.30.0 Source: Anchor CHANGELOG, so `anchor build` needs `cargo-build-sbf` on your `PATH` like any other Solana build. Install it as above after you move to Solana CLI 4.5.

Other recent Anchor changes that affect local development, all from the same changelog:

Anchor's install page recommends installing through the Anchor Version Manager (`avm install latest`, `avm use latest`) and notes that Node.js and Yarn are only needed for project setup and TypeScript test templates, not for the default LiteSVM template Source: Anchor installation. Anchor 2.0 is in release candidates (2.0.0-rc.4 published Nov 14, 2026) Source: crates.io anchor-cli; check its notes before moving a production project.

Surfpool or solana-test-validator?

Surfpool calls itself a "drop-in replacement for `solana-test-validator`" that mirrors mainnet state without downloading the chain ("no 2 TB snapshots"), and says it works with `solana-cli`, Anchor and Kit unchanged Source: Surfpool README. It adds cheatcodes (time travel, a universal faucet, a transaction inspector), a local Studio dashboard, and infrastructure-as-code runbooks: run `surfpool start` inside an Anchor project and it generates them and deploys your programs to the local network. Install with its script (`curl -sL https://run.surfpool.run/ | bash`), from source, or with the `surfpool/surfpool` Docker image. Trade-offs: the README's MCP server is early ("We'll be adding more tools over time"), and it mentions a hosted Surfpool Cloud whose pricing we couldn't find.

`solana-test-validator` still ships with the Solana CLI and can clone chosen accounts and programs from a public cluster Source: Anza test validator docs. You list what to copy up front, while Surfpool fetches what a transaction touches. If your tests need specific mainnet programs or token accounts, Surfpool saves you that list; if they're fully self-contained, the built-in validator is one less tool to install. We compare the two side by side in Surfpool vs Solana CLI.

The RustRover Solana plugin

JetBrains' Solana (Experimental) plugin works with Anchor-based projects: it reads `Anchor.toml`, adds Anchor Build and Anchor Test run configurations, has a "Surfpool: Start" configuration, deploys programs to the selected cluster, syncs program IDs (like `anchor keys sync`), and has an explorer that decodes instructions and accounts with your program's IDL Source: JetBrains docs. Under Settings | Solana it detects the Solana CLI, AVM, Anchor CLI and Surfpool, and offers an "Install missing tools" link. Its explorer ships with Mainnet Beta, Testnet, Devnet and Localnet networks.

Trade-offs: JetBrains says its "interface and behavior may change," it only targets Anchor projects, and it runs only in RustRover, which is free for non-commercial use and needs a paid subscription for commercial work Source: JetBrains, Register RustRover. The tools it lists don't include `cargo-build-sbf`, so install that yourself after moving to CLI 4.5.

How to choose your local setup

For RPC once you leave localnet, see Solana infrastructure; for agent tooling, Solana AI agent tools. Building the frontend? Reown AppKit 2.0 now connects Solana wallets with `@solana/kit`.