CLI Reference

Use the CLI to deploy your contracts directly to any EVM compatible blockchain by running:

npx thirdweb [options]


-p--path <string>
  • Path to project
  • Clear the cache before building
  • Dry run (skip actually publishing)
  • Show debug logs
  • Continuous Integration mode
--dist-path <string>
  • Path to the dist folder where the HTML based App is
-n--name <string>
  • Name of the pre-built or published contract (such as nft-drop)
-f--file <string>
  • Filter for contract files that contain this file name
-cn--contract-name <string>
  • Filter for contracts that contain this contract name
-cv--contract-version <string>
  • Version of the published contract
  • Deploy a web app to decentralized storage
  • Deploy a smart contract to blockchains
  • Deploy a dynamic smart contract made up of extensions to blockchains
-k--key <string>
  • Optional parameter to use passed in secret key, most useful for continuous integration use cases.