Installing Anchor

Anchor

Chapter 2: Installing Anchor

Let’s install Anchor to start building Solana programs.

Installation Command

cargo install --git https://github.com/coral-xyz/anchor anchor-cli --locked

Verification

anchor --version


Page Layout:

  • Header: Fixed top bar with "Solana Learn" logo, navigation, and profile icon.

  • Main Content:

    • Left Panel (70%): This text content.

    • Right Panel (30%): Terminal emulator with output.

  • Footer: Link to Anchor GitHub.

Visuals:

  • Terminal Emulator: anchor 0.30.1 output.

  • Progress Bar: Steps (e.g., "Downloading", "Installing").

Interactivity:

  • "Copy" button for the command.

Last updated