Create a new project

Once you install Clarinet, you can use Clarinet to create a new project.


Create a new Clarinet project with the basic directory structure and configuration files:

Terminal
$
clarinet new my-project

This will create a project directory with the following directory layout:

Devnet.toml
Mainnet.toml
Testnet.toml
.gitignore
Clarinet.toml
package.json
tsconfig.json
vitest.config.js

The Clarinet.toml file contains configuration for the smart contracts in your project. When you create contracts in your project, Clarinet will automatically add them to this file.

The settings/Devnet.toml file contains configuration for accounts in the Clarinet console, including the seed phrases and initial balances for a set of out-of-the-box wallets that you can use for testing in the devnet environment.