Publish CLI Reference

Use the CLI to publish your contracts directly to Any EVM compatible chain using the dashboard:

npx thirdweb publish

This command will:

  • Compile your smart contract.
  • Upload the contract source code (ABI) to IPFS.
  • Open the publish flow in the dashboard.


-p--path <string>
  • Path to project
-f--file <string>
  • Filter for contract files that contain this file name
-cn--contract-name <string>
  • Filter for contracts that contain this contract name
  • Clear the cache before building
  • Dry run (skip actually publishing)
  • Show debug logs
  • Continuous Integration mode
-k--key <string>