Files
web/apps/base-docs/docs/tools/thirdweb-cli.md
taycaldwell 47ca5b7b77 Docs Site Revamp: Tutorials (#370)
* Add discord, twitter, and github icons.

* Update docusaurus.

* Move security page to sidebar.

* Remove copyright from site footers.

* Add caret icons for dropdown css override.

* Build and style custom docs navbar.

* Resolve Icon merge conflict.

* Change Developers dropdown to Builders.

* lint: Remove unused variable

* Add tutorials; initial commit

* Add and display new frontmatter

* Convert tutorials to single page pt. 1

* Update tutorial data; fix paths

* Ecopage - rubyscore + lore logos (#373)

* Update ecosystem.json (#374)

* Fix incorrectly rendering open graph metadata (#369)

* feat(web): Serve dynamic og:metadata server-side

* feat(docs): Serve dynamic og:metadata server-side

* fix(web): Resolve linting errors

* fix(web): Linting

* fix(web): Additional linting corrections

* fix(web): Resolve Typescript-related syntax error

* refactor(web): Add ogData to data structure

* fix(ecosystem): Typo in partner image name (#375)

* feat(bridge): Add planned paused note to top of page (#376)

* Update hyperframes to use state (#377)

* Update hyperframes to use state

* Respond to feedback

* fix(bridge): Add default open graph metadata (#378)

* Added Moralis to data indexers (#371)

* Added Moralis to data indexers

* typos

* Update copy

* Remove superlatives

---------

Co-authored-by: taycaldwell <taylor.lee.caldwell@gmail.com>

* docs(bridge): Update bridge pause to new date (#381)

* mention setting `OP_NODE_L1_BEACON` (#380)

* feat(docs): Add Uniswap V3 Base Sepolia contracts (#382)

* Improve loading experience on jobs page (#389)

* Docs Site Revamp: Navbar, Sidebar, and Doc Page (#379)

* Add discord, twitter, and github icons.

* Update docusaurus.

* Move security page to sidebar.

* Remove copyright from site footers.

* Add caret icons for dropdown css override.

* Build and style custom docs navbar.

* Resolve Icon merge conflict.

* Change Developers dropdown to Builders.

* lint: Remove unused variable

* Re-add node polyfills required for cookie manager to work.

* Disable DocFeedback component.

* Disable paginator and table of contents.

* Add collapse icons for css override.

* Fix Modal overlay styles.

* Adjust DocChat floating button position.

* Reorganize and restyle sidebar for new design.

* Update gray0 and modal overlay styles.

* Add stylesheet for new doc page styles.

* Remove TODO. Add sidebar link hover styles.

* Move responsive styles to bottom.

* Disable breadcrumb component. Update layout spacing.

---------

Co-authored-by: taycaldwell <taylor.lee.caldwell@gmail.com>

* refactor(bridge): Drop bridge maintenance notice (#390)

* Add tutorials; initial commit

* Add and display new frontmatter

* Update tutorial data

* Fix frontmatter

* Update TOC

* Update tutorials page

* Update toc margin

* fix nested categories in sidebar

* Add all tutorials back link

---------

Co-authored-by: Jacob Moore <jacob.moore@coinbase.com>
Co-authored-by: Kathryn <kathryn.snow@coinbase.com>
Co-authored-by: wbnns <hello@wbnns.com>
Co-authored-by: Brian Doyle <brian.doyle@coinbase.com>
Co-authored-by: Filip Martinsson <martinsson.filip@gmail.com>
Co-authored-by: abhi <abhijeet.bhagat@gmx.com>
Co-authored-by: Matthew Bunday <matthew.bunday@coinbase.com>
2024-03-28 11:33:18 -07: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 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