The CLI provides tools to create, build, and deploy projects using thirdweb tools and infrastructure. Using the CLI, you can create new projects with the SDK configured, build, publish and deploy smart contracts, generate types while developing, upload files to IPFS, and more.
The CLI is open-source. You can view the source code and contribute to it on GitHub.
If you are on windows, please avoid using powershell it has some known issues that we are actively working on, please use git bash instead or the windows command prompt.
Install the CLI package globally to use the commands anywhere on your system.
Note: If you do not wish to install it globally, you can prefix each command with
npx thirdweb <command>.
npm i -g thirdweb
yarn global add thirdweb
pnpm install -g thirdweb
Once installed, you can view the full list of available commands by running:
|Name of command||Description|
|Create a web3 app from any of our official templates.|
|Add thirdweb’s packages to your existing project.|
|Compile contract and detect thirdweb contract extensions.|
|Fetch contract ABIs to generate types and improve performance in the SDK.|
|Upload any file or directory to decentralized storage (IPFS).|
|Deploy your (or your team’s) contracts securely to blockchains.|
|Publish your protocol so other devs can deploy them and unlock SDKs, dashboards and analytics.|
|Authenticate with the thirdweb CLI using your API secret key or replace an existing API key.|
|Logout of the thirdweb CLI, effectively removing your API secret key from your machine.|