@joystick.js/cli

start

Start an existing Joystick app from your terminal.

To start an existing Joystick app, from your terminal, run:

joystick start

Using Node.js Imports

In some situations (e.g., when implementing instrumentation for an APM service like Sentry), you will need to start Joystick with one or more scripts to import before Joystick's Node.js process starts.

To do this, utilize the --imports flag when starting your app, passing a comma-separated list of imports to load:

joystick start --imports lib/node/sentry.js,lib/node/datadog.js
APMs Typically Support One Import

Because APMs use this mechanism for instrumenting your app via the V8 Inspector API, typically only a single import is supported. Joystick supports multiple imports as a convenience, not a prescription.

Options

-d, --debug
Enables debug mode for Node.js when starting your app (default false).
-e, --environment
The environment to set for process.env.NODE_ENV (default development).
-p, --port
The port number to start your Joystick app on (default 2600).
-i, --imports
A comma-separated list of paths pointing to scripts that should run before Joystick's Node.js process starts (e.g., APM instrumentation).