Skip to content

Quick Start Guide - Install and Run Testship in Minutes

Before you begin, ensure you have:

  • Node.js (v16 or higher)
  • Rust and Solana CLI installed
  • Anchor Framework installed
  • An existing Anchor program or a new project ready

Run Testship directly without installation using npx:

Terminal window
npx @blockchain-hq/testship@latest start

This ensures you’re always using the latest version without managing global installations.

Or install Testship globally:

Terminal window
# npm
npm install -g @blockchain-hq/testship
# yarn
yarn global add @blockchain-hq/testship
# pnpm
pnpm add -g @blockchain-hq/testship

📦 Package: @blockchain-hq/testship on npm

Navigate to your Anchor project directory:

Terminal window
cd your-anchor-project

Make sure your program is built:

Terminal window
anchor build

Start the Testship interactive UI:

Terminal window
# Using npx (recommended)
npx @blockchain-hq/testship@latest start
# Or if installed globally
testship start

This will:

  • Analyze your Anchor program IDL
  • Generate an interactive testing interface
  • Open your browser at http://localhost:3000

The Testship UI will display:

  • All available program instructions
  • Automatically derived account inputs
  • PDA derivation helpers
  • Account suggestion dropdowns

Simply select an instruction, fill in the required parameters, and click “Execute” to test your program!

Explore Testship’s powerful features:

  • Visit testship.xyz for more resources
  • Follow us on X @testshipxyz for updates
  • Check out the package on npm
  • Report issues on our GitHub repository