Skip to main content

You can use Clarinet to publish your contracts to the public testnet or mainnet for testing or production.

Topics covered in this guide:

Generate Deployment plan

The first step is to generate a deployment plan with the command below (note: replace --mainnet with --testnet to deploy to the latter). Please specify a cost strategy to incentivize miners to carry your transaction (either --low-cost, --medium-cost, --high-cost, or --manual-cost). The final command might look like:

clarinet deployment generate --mainnet --medium-cost

Deploy

After carefully reviewing (and updating if needed) the generated deployment plan, you can use the command below to handle the deployments of your contracts.

clarinet deployment apply --mainnet