@hiberworld/code-kit-cli
v0.4.13
Published
Hiber Code-Kit's own CLI to perform various actions
Downloads
28
Keywords
Readme
Hiber Code-Kit CLI
Commands
upload
This command does the following:
- Make sure we have a DEVELOPER_TOKEN set in .env (Prompts the user for one if missing)
- Reads a scene.json that should contain the world json (Gives error if it doesn't exist)
- Reads an app.json that should contain an id for an existing project on hiberworld
- 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
- Run an api call to /project/{id-from-app.json}/save_v3 with the contents of scene.json to upload the world data.
- Log the link to the world on hiberworld.com