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
@nearform/titus-cli with all
npm packages installed. Try it out:
@nearform/titus-cli lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
A command line application to work with Titus
startercommand to initialise a new Titus application.
npm install -g @nearform/titus-cli
If you'd prefer not to install the package globally you can use
npx which comes bundled with npm 5.2.0 or later. You can use it like so:
npx @nearform/titus-cli starter <project-name>
titus starter <project-name>
titus starter my-project
This pulls the latest version of titus starter shell from GitHub and copies it to a new subfolder of the current directory called
Install the dependencies using either npm or yarn:
To use the local version of the cli in the command line we need to link it to our global packages and add the bin to our PATH:
NB. This doesn't work in yarn at the moment. There are several open issues about it, but it is not looking like something that will get resolved.