Climaider CLI
Installation#
Run the following commands
npm i -g @climaider/cliUninstall#
npm uninstall -g @climaider/clidev#
Clone github repo
Add a .env.local in the root directory
in .env.local add the following
APP_ROOT_PATH=<Path to /climaider-app>Usage#
Always be in the root folder of the climaider app being 'climaider-app', otherwise the CLI will simply yell at you.
Challenges#
Create#
Create a new challenge
climaider challenge createCreate a challenge from the unimplemented challenges list
climaider challenge create --unimplementedCreate a new unimplemented challenge for users to vote on
climaider challenge addDev Instructions
These are important instructions for the devs working on the CLI.
Sensitive information#
warning
Do not put any sensitive information in the project as it is public!
Updating versioning number#
Preferably use NPM's versioning command
npm version <patch | minor | major | (and some more not listed here ...) >warning
When a version has been published to NPM, that same versioning number can never be used again! (might have to contact support if you want to re-use it)
Versioning#
npm versioning numbering style: major.minor.patch
major - non-backwards compatible changes (shouldn't occur that often)
minor - backwards compatible features
patch - backwards compatible bug fixes / typo fixes etc. etc.
Publishing#
Update the versioning number (use the
npm version <type>command)run
npm publish