0.13.81 • Published 5 days ago

@thirdweb-dev/cli v0.13.81

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 days ago

thirdweb-cli

The thirdweb CLI is your one-stop-shop for publishing custom contracts for your team or 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.

This brings all the capabilities of thirdweb to your own custom contracts.

1. Extending ThirdwebContract

In order to publish a contract and get all the benefits of the thirdweb platform, your contract needs to extend ThirdwebContract.

From your project, add the thirdweb contracts dependency:

yarn add @thirdweb-dev/contracts@byoc

or with npm

npm i @thirdweb-dev/contracts@byoc

Once installed, in your Solidity contract you want to publish, import and extend ThirdwebContract. Here's an example:

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@thirdweb-dev/contracts/ThirdwebContract.sol";

contract HellowWorldContract is ThirdwebContract {
    // your contract code
}

2. Publishing your contract

Once your contract code is setup like above, you can now publish it by running:

npx @thirdweb-dev/cli publish

Alternatively, you install the CLI as a global command on your machine:

npm i -g @thirdweb-dev/cli
thirdweb publish

This command will:

  • auto-detect any contract that extends ThirdwebContract in your project
  • compile your project
  • Upload ABIs to IPFS
  • Open the publish flow in your thirdweb dashboard in a browser

From the thirdweb dashboard, you can review and publish your contracts. Published contracts can be deployed via the dashboard on with our SDKs.


Supported projects

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:

  • hardhat

Coming soon:

  • forge
  • truffle

Running the examples

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:

  1. Install the package locally
  2. Run the build:watch command to compile any changes in realtime
$ npm install -g ./
$ yarn run build:watch

TODO: figure out how to do the global local installation with yarn

0.13.81

8 days ago

0.13.80

11 days ago

0.13.79

12 days ago

0.13.78

15 days ago

0.13.77

16 days ago

0.13.74

18 days ago

0.13.73

19 days ago

0.13.76

17 days ago

0.13.75

17 days ago

0.13.72

22 days ago

0.13.71

23 days ago

0.13.70

24 days ago

0.13.69

26 days ago

0.13.67

1 month ago

0.13.66

1 month ago

0.13.65

1 month ago

0.13.68

1 month ago

0.13.64

1 month ago

0.13.63

1 month ago

0.13.62

1 month ago

0.13.61

1 month ago

0.13.59

1 month ago

0.13.58

1 month ago

0.13.57

1 month ago

0.13.60

1 month ago

0.6.14

2 years ago

0.6.13

2 years ago

0.6.15

2 years ago

0.6.12

2 years ago

0.6.7

2 years ago

0.6.6

2 years ago

0.6.9

2 years ago

0.6.8

2 years ago

0.6.2-0

2 years ago

0.6.12-0

2 years ago

0.6.10

2 years ago

0.6.8-0

2 years ago

0.6.11

2 years ago

0.6.4-0

2 years ago

0.6.2-1

2 years ago

0.5.2

2 years ago

0.5.3-0

2 years ago

0.6.9-0

2 years ago

0.6.7-2

2 years ago

0.6.7-1

2 years ago

0.6.7-0

2 years ago

0.5.3-2

2 years ago

0.5.3-1

2 years ago

0.5.3-3

2 years ago

0.6.3

2 years ago

0.6.2

2 years ago

0.6.5

2 years ago

0.6.4

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago

0.4.6-0

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.3.7

2 years ago

0.5.0

2 years ago

0.5.1

2 years ago

0.4.7-1

2 years ago

0.4.7-0

2 years ago

0.4.7-5

2 years ago

0.4.7-4

2 years ago

0.4.7-3

2 years ago

0.4.7-2

2 years ago

0.4.7-8

2 years ago

0.4.7-7

2 years ago

0.4.7-6

2 years ago

0.3.7-0

2 years ago

0.3.7-1

2 years ago

0.4.5

2 years ago

0.4.4

2 years ago

0.4.6

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.4.3

2 years ago

0.4.2

2 years ago

0.0.20

2 years ago

0.0.21

2 years ago

0.0.22

2 years ago

0.0.23

2 years ago

0.0.24

2 years ago

0.0.25

2 years ago

0.0.16

2 years ago

0.0.17

2 years ago

0.0.18

2 years ago

0.0.19

2 years ago

0.2.8-0

2 years ago

0.2.3-0

2 years ago

0.0.10

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.14

2 years ago

0.3.2-0

2 years ago

0.1.0

2 years ago

0.3.0

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.2.7

2 years ago

0.0.26

2 years ago

0.0.9

2 years ago

0.2.6

2 years ago

0.0.27

2 years ago

0.2.9

2 years ago

0.0.28

2 years ago

0.2.8

2 years ago

0.0.29

2 years ago

0.3.2

2 years ago

0.2.3

2 years ago

0.3.1

2 years ago

0.2.2

2 years ago

0.3.4

2 years ago

0.2.5

2 years ago

0.3.3

2 years ago

0.2.4

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago