Package Exports
- decentraland
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (decentraland) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Decentraland CLI 1.2
CLI tool for parcel management.
- Quickly create new projects
- Uploading scenes to IPFS
- Linking Ethereum to the scene
- Pinning scene to Decentraland IPFS node
- Compiling scripts
- Warnings and linting of scenes
- Hot reloading
- Query parcel info
- Query deployment status
- Optimizing objects, textures
- Generating bundles of assets
- Test framework for scripting
Requirements
Documentation
Installation details for each platform can be found on the Documentation
Usage
Initialize new Decentraland project from working directory:
$ dcl init
Start local development server and serve your scene:
$ dcl start
You can prevent the browser from opening by using the --no-browser
flag.
Deploy scene to IPFS and the Ethereum Blockchain:
You need to have IPFS daemon running for this to work!
$ dcl deploy
Check installed CLI version:
dcl -v
Check parcel information:
dcl info 0,0
Check owner information:
dcl info 0x...
Check parcel deployment status:
dcl status 0,0
When deployments are unsuccessful you can save some time by calling dcl link
or dcl pin
atomically.
Building
- Clone the repo:
git clone https://github.com/decentraland/cli.git
- Go into the CLI directory:
cd cli
- Run
npm install
- Link the CLI with:
npm link
dcl
command should now be available.
For CLI tool development, run npm run watch
in your terminal and npm link
in order to use it anywhere. The CLI will use the mainnet address for the LANDProxy contract by default. If you want to change it, you can define the LAND_REGISTRY_CONTRACT_ADDRESS
environment variable. You can also use DCL_ENV=dev
to point to the Ropsten contract. Contract addresses are available here.
For the Decentraland IPFS node, we are getting the url from here. If you want to set a different url set the IPFS_GATEWAY
var in the .env
file.
You can do incremental compilations by running npm run watch
, but you will need to run npm run build
at least once before.