Files
web/apps/base-docs/docs/tools/thirdweb-cli.md
omahs ed62b54531 Fix typos (#431)
* fix typos

* fix typo

* fix typo

* fix typo

* fix typo

* fix typos
2024-04-10 15:52:19 +00:00

2.4 KiB
Raw Blame History

title, slug, description, keywords, hide_table_of_contents
title slug description keywords hide_table_of_contents
thirdweb CLI /tools/thirdweb-cli Documentation for using the thirdweb CLI for creating, deploying, and publishing smart contracts and web3 applications on the Base network, including detailed instructions and options for project creation and deployment.
thirdweb CLI
thirdweb
CLI
Base
Base mainnet
Base testnet
Base network
smart contracts
deploy smart contract
test smart contract
debug smart contract
web3 applications
true

thirdweb CLI

thirdweb provides an interactive command line interface, allowing you to create, build and deploy your smart contracts and apps.

You can use the thirdweb CLI to create and deploy smart contracts to the Base network.

Visit the thirdweb documentation for more instructions on using the thirdweb CLI.


Creating a project

Create a new project with thirdweb installed and configured:

npx thirdweb create

:::info

When you create a project for smart contracts or web3 apps there are various configurable options.

For contracts, some options are:

  • Create a new contract project using Hardhat or Forge
  • Add a new contract to an existing project
  • Start from an audited contract base, and add optional extensions

For contracts, some options are:

  • Front end applications using Next, CRA or Vite
  • Backend applications using Node.js or Express.js
  • Choice of TypeScript or JavaScript variants

:::


Deploying a smart contract

Deploy your smart contracts to the Base network:

npx thirdweb deploy

:::info

To deploy to the Base network, after running npx thirdweb deploy, visit the provided dashboard URL and select Base from the Network dropdown.

:::

:::info

For a complete guide on using the thirdweb CLI to create and deploy contracts on Base, see Deploy a smart contract on Base testnet.

:::


Publishing a smart contract

Publish and share a versioned release of your contract onto thirdwebs registry:

npx thirdweb publish