thirdweb-cli
The thirdweb CLI is your one-stop-shop for publishing custom contracts for the world
to use. The CLI uploads all necessary data to decentralized storage and makes it available
to deploy via the thirdweb sdk or thirdweb dashboard.
The project thats uploaded uses a standard public format that allows your team to
compile the projects, too.
Installation
$ yarn global add @thirdweb-dev/cli
$ npm i -g @thirdweb-dev/cli
Publishing the example contract
To publish, you need to be in a directory that contains a project which the CLI is compatible
with. The projects we support so far:
Coming soon:
Clone the repo and run this command after installing the CLI tool:
$ cd examples/hardhat
$ thirdweb publish
Local Development
The simplest way to work on the CLI locally is to:
- Install the package locally
- Run the
build:watch
command to compile any changes in realtime
$ npm global add ./
$ yarn run build:watch
TODO: figure out how to do the global local installation with yarn