This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
nodecg-cli with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
NodeCG's command line interface.
npm install -g bower
Once those are installed, you may install nodecg-cli via npm:
npm install -g nodecg-cli
nodecg-cli does not install
To install an instance of
NodeCG, use the
setup command in an empty directory:
mkdir nodecg cd nodecg nodecg setup
nodecg setup [version] [--update], install a new instance of NodeCG.
versionis a semver range. If
versionis not supplied, the latest release will be installed. Enable
--updateflag to install over an existing copy of NodeCG.
nodecg start, start the NodeCG instance in this directory path
nodecg install [repo] [--dev], install a bundle by cloning a git repo. Can be a GitHub owner/repo pair (
supportclass/lfg-sublistener) or https git url (
https://github.com/SupportClass/lfg-sublistener.git). If run in a bundle directory with no arguments, installs that bundle's dependencies. Enable
--devflag to install the bundle's
nodecg uninstall <bundle>, uninstall a bundle
nodecg defaultconfig, If a bundle has a
configschema.jsonpresent in its root, this command will create a default config file at
nodecg/cfg/:bundleName.jsonwith defaults based on that schema.
nodecg schema-types [dir], Generate d.ts TypeScript typedef files from Replicant schemas and configschema.json (if present)
This CLI program is based on Tim Santeford's commander.js starter.