Deploy a contract

Use Clarinet to publish your contracts to the testnet or mainnet networks.

The first step to deploying your contracts is to first generate a deployment plan.

Terminal
clarinet deployment generate --testnet
What are deployment plans?

These are yaml files for creating reproducible deployment steps that publish a collection of on-chain transactions and contracts to a network.

Once you've reviewed your deployment plan at deployments/<default.<network>-plan.yaml, you can use the apply command to handle the deployments of your contracts.

Terminal
clarinet deployment apply --testnet 
Dive deeper

Check out the Create deployment plans guide to learn more on how to customize your deployment plans.

Last updated on