Docs

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.

Options

-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
-c--clean
  • Clear the cache before building
--dry-run
  • Dry run (skip actually publishing)
-d--debug
  • Show debug logs
--ci
  • Continuous Integration mode
-k--key <string>