Create a new project

Once you have installed Clarinet, you may then use Clarinet to create a new project.

To create a new project, run the clarinet new command along with your project name.

Terminal
clarinet new my-project

Clarinet 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 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. Initial balances are in microSTX.

Last updated on