Skip to main content


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

npx thirdweb build


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]


  Clear the cache before building

-p--path <string>
  Path to project

  Show debug logs

  Run detection on all contracts