New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

decentraland

Package Overview
Dependencies
Maintainers
3
Versions
1992
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

decentraland

CLI tool for parcel management.

  • 0.4.0-next
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
91
decreased by-39.33%
Maintainers
3
Weekly downloads
 
Created
Source

Decentraland CLI

CLI tool for parcel management.

  • Quickly create new projects
  • Uploading scenes to IPFS
  • Hot reloading
  • Linking Ethereum to the scene
  • Pinning scene to Decentraland IPFS node
  • Editor modifying local files and “uploading” to the directory
  • Optimizing objects, textures
  • Warnings and linting of scenes
  • Compiling scripts
  • Generating bundles of assets
  • Manage IPFS uploading/differential uploads
  • Test framework for scripting
  • Snapshots of the scene

Requirements

  • NodeJS v8 and above
  • Python 2.7
  • IPFS

NodeJS Installation

MacOS/Linux:

You need to have NodeJS (version 8.. and above) installed on your system to use the CLI. You can use official NodeJS installer, but on MacOS/Linux we recommend to use NVM for managing your NodeJS installation. Please follow the installation instructions.

Windows:

We recommend using official NodeJS installer - download the latest LTS version here (we only support version 8.. and above).

CLI installation

If you have NodeJS installed, run this command from terminal:

$ npm install -g decentraland

This should install CLI tool and make it available globally. Please proceed to usage documentation.

Documentation

Usage

  • Initialize new Decentraland project from working directory:
$ dcl init
  • Start local development server and serve your a-minus scene:
$ dcl start
  • Upload scene to IPFS:

First, you need to have IPFS installed locally. Download it here. Note: You need to have IPFS daemon running for this to work!

$ dcl upload
  • Link Ethereum to the current scene and pin scene to Decentraland IPFS node:
$ dcl link
  • Upload scene to IPFS, update IPNS and link Ethereum to the current scene in one go:
$ dcl push

Updating

If you encounter a message Ethereum linker app is outdated! Please run dcl upgrade!, you need to update the Ethereum linker inside your Decentraland project:

  1. cd your-dcl-project
  2. dcl upgrade

To update the CLI tool:

$ npm update -g decentraland

Building

  1. Clone the repo: git clone https://github.com/decentraland/cli.git
  2. Go into the CLI directory: cd cli
  3. Run npm install
  4. Link the CLI with: npm link

dcl command should now be available.

For CLI tool development, run npm start in your terminal. The CLI will use the mainnet address for the LANDProxy contract by default. If you want to change it, you can add a .env file on the root folder, with a LAND_REGISTRY_CONTRACT_ADDRESS var. It'll use dotenv to fetch the value. You can check the current contract addresses 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 run CLI commands in development mode like this: npm start -- init

You can do incremental compilations by running npm run watch, but you will need to run npm run build at least once before to build the linker-app, and if you make changes to the linker you will need to re-run npm run build.

Keywords

FAQs

Package last updated on 12 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc