A starter repository to deploy NFT collection using Owl Protocol's CLI
See our docs on how to get started with our CLI
- Node.js v16 or v18
- PNPM (NPM is fine too)
- Owl Protocol CLI
- Install the CLI if you haven't already:
pnpm install -g @owlprotocol/nft-sdk-cli
- Install node modules:
pnpm install
NETWORK
: the network settings to use in thenetworks.json
file.- Note: you can add more network settings in that file.
HD_WALLET_MNEMONIC
: the mnemonic to use for blockchain interactions with the CLI.PRIVATE_KEY_0
: instead ofHD_WALLET_MNEMONIC
, you can directly specify a private key.
Note: by default, the owl-cli
looks at .env.development
for environment variables if it exists.
Create a folder under projects
, say my-project
:
mkdir projects/my-project
Create your traits.ts
and collections.ts
files in that folder.
Run the build
script to compile TypeScript files in the projects
foldfer into JavaScript files.
pnpm run build
Running Ganache locally is easy:
pnpm i -g ganache
ganache --wallet.mnemonic '<MY MNEMONIC>'
This must match the HD_WALLET_MNEMONIC
in the .env.development
file.
owl-cli generateJsonSchema collections.js --projectFolder=projects/<my-project>