Files
web/apps/base-docs/docs/tools/thirdweb-cli.md
taycaldwell 0650a43c93 Add description and keyword metadata for SEO (#148)
* Add description and keyword metadata for SEO

* Update deploy-smart-contracts.mdx

* Update metadata

* Update connecting-to-the-blockchain.md

* Attempt #123 to wakeup Heimdall

* Fix formatting

* Remove file
2023-11-22 15:57:03 -05:00

2.3 KiB
Raw Blame History

title, slug, description, keywords
title slug description keywords
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

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 a 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