@hiberworld/code-kit-cli

0.4.13 • Public • Published

Hiber Code-Kit CLI

Commands

upload

This command does the following:

  1. Make sure we have a DEVELOPER_TOKEN set in .env (Prompts the user for one if missing)
  2. Reads a scene.json that should contain the world json (Gives error if it doesn't exist)
  3. Reads an app.json that should contain an id for an existing project on hiberworld
  4. If no app.json is found, prompt the user for a project title and run an api call to /project/codekit/create to create a new project. Save the response id and title to app.json
  5. Run an api call to /project/{id-from-app.json}/save_v3 with the contents of scene.json to upload the world data.
  6. Log the link to the world on hiberworld.com

Readme

Keywords

none

Package Sidebar

Install

npm i @hiberworld/code-kit-cli

Weekly Downloads

0

Version

0.4.13

License

SEE LICENSE IN LICENSE.md

Unpacked Size

547 kB

Total Files

5

Last publish

Collaborators

  • arpo
  • filipengberg
  • thehink
  • hiberbot
  • jonashiber