Skip to main content

Build

Compile your smart contracts and detect any extensions you have implemented.

npx thirdweb build

Usage

This command:

  • Detects the framework you're using (Hardhat, Forge, etc.)
  • Compiles all of your smart contracts using the framework's compiler, or the default Solidity compiler
  • Displays the extensions you have implemented for each contract
npx thirdweb [options]

Options

-c--clean
  Clear the cache before building

-p--path <string>
  Path to project

-d--debug
  Show debug logs

-a--all
  Run detection on all contracts