Skip to main content

Developer Tools

The following development tools are essential for working through this section of the documentation:

Bun

Bun is an all-in-one JavaScript runtime & toolkit designed for speed. It includes a bundler, test runner, and Node.js-compatible package manager.

Since Bun is a JavaScript runtime that Pre-CLI depends on, you should install it first:

curl https://bun.sh/install | bash

Pre-CLI

Pre-CLI is the command-line interface for interacting with the Previous protocol.

To install Pre-CLI, run the following command:

bun install -g @getpre/pre-cli

Foundry (Optional)

Foundry is a smart contract development toolchain that manages your dependencies, compiles your project, runs tests, deploys contracts, and allows you to interact with the chain from the command line and via Solidity scripts.

If you are going to follow the guide to create a new set, which involves smart contract development, Foundry will also be needed.

To install Foundry, run the following commands:

curl -L https://foundry.paradigm.xyz | bash
foundryup

Bun and Forge (a component of Foundry) are also used as project creators, making creating projects based on a repository a charm. They are a great addition to your toolkit.