Clarinet Overview
Clarinet is a local development environment that offers everything you need to create, test, and deploy smart contracts on Stacks.
Using a simple command line interface, Clarinet enables you to build and iterate on your contracts locally before moving into production on mainnet.
You can code with Clarity syntax support, run tests, debug your code line by line, and deploy your contracts to a local Stacks blockchain environment to rapidly iterate on your code.
Clarinet can be used locally or as a hosted service in the cloud via the Hiro Platform.
Install Clarinet
Guides
Create a new contract
Add new contracts to your project and have them automatically configured in your project file.
Debug a contract
Utilize powerful debugging tools to step through your code, print values, and trace execution paths.
Write unit tests
Leverage the Clarinet SDK to write comprehensive unit tests, ensuring your contract performs as expected.
Create deployment plans
Employ customizable deployment plans to streamline your contract deployments, facilitating multi-step processes with ease.
Run a local development environment
Set up a local devnet environment for developing and testing in a controlled environment before deployment.
Analyzing contracts for vulnerabilities
Learn how to enable the `check_checker` feature to identify potentially dangerous areas in your contracts.
Related Tools
- Clarinet JS SDK: Simplify your testing with the Clarinet SDK.
- Hiro Platform: Streamline your app development in our hosted dev experience.
- Stacks.js: Leverage a JavaScript library that handles basic functions, such as user authentication and transaction signing.
Need help building with Clarinet? Reach out to us on the #clarinet
channel on Discord under Hiro Developer Tools section. We also host a weekly office hours on Discord every Monday at 11am ET.
Last updated on