Giter Site home page Giter Site logo

cli's Introduction

Decentraland CLI

CLI tool for parcel management.

  • Quickly create new projects
  • Uploading scenes to IPFS
  • Hot reloading
  • Linking Ethereum to the scene
  • 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

Installation

$ npm install -g decentraland

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:
$ dcl link
  • Upload scene to IPFS, update IPNS and link Ethereum to the current scene in one go:
$ dcl push

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.

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.

cli's People

Contributors

abarmat avatar cazala avatar eordano avatar hprivakos avatar menduz avatar michaltakac avatar nicosantangelo avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.