Overview
Clarinet is everything you need to write, test, and deploy Clarity smart contracts on Stacks.

Clarinet is the fastest way to build, test, and deploy smart contracts on the Stacks blockchain. It gives you a local devnet, REPL, testing framework, and debugging tools to ship high-quality Clarity code with confidence.
Key features
Leverage a powerful CLI - Create new projects, manage your smart contracts and their dependencies using clarinet requirements, and interact with your code through the built-in REPL.
Write unit tests with the SDK - Use the Clarinet SDK to write unit tests in a familiar JS environment and validate contract behavior.
Run a private blockchain environment - Spin up a local devnet with nodes, miners, and APIs so you can test and integrate your code.
VSCode extension - Linter, step by step debugger, helps writing smart contracts (autocompletion, documentation etc).
Installation
brew install clarinetNetworks
Clarinet supports different network types to cater to various development and testing needs:
simnet
Optimized for fast feedback loops, introspection, and portability.
Ideal for initial development and unit-testing.
devnet
Local Stacks and Bitcoin nodes running on Docker for faster feedback loops.
Use for integration tests or local frontend development.
testnet
A pre-production network that offers a realistic environment for testing.
Ideal for final testing before deploying to Mainnet.
mainnet
The production network where real transactions occur.
Use when you're ready to deploy your smart contract to production.
Last updated
Was this helpful?
