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

```bash
-cn--contract-name <string>
```
- Filter for contracts that contain this contract name

```bash
-c--clean
```
- Clear the cache before building

```bash
--dry-run
```
- Dry run (skip actually publishing)

```bash
-d--debug
```
- Show debug logs

```bash
--ci
```
- Continuous Integration mode

```bash
-k--key <string>
```