CLI
PJSD CLI is a wrapper around PJSD. It allows you to run PJSD as an executable from the command line. For detailed usage information go to the documentation home.
Installation
The CLI defers to the locally installed version of it when available, but still works if it is not installed locally but only globally.
Install the CLI in your project locally:
npm install <package-directory>/preemptive-pjsd-core-{version}.tgz <package-directory>/preemptive-pjsd-cli-{version}.tgz --save-dev
OR
yarn add file:<package-directory>/preemptive-pjsd-core-{version}.tgz file:<package-directory>/preemptive-pjsd-cli-{version}.tgz
Install the CLI globally:
npm install <package-directory>/preemptive-pjsd-core-{version}.tgz <package-directory>/preemptive-pjsd-cli-{version}.tgz -g
OR
yarn global add <package-absolute-directory>/preemptive-pjsd-core-{version}.tgz <package-absolute-directory>/preemptive-pjsd-cli-{version}.tgz
Note: Due to Yarn limitations you must specify the absolute path of the package to be able to install it globally. Additionally, if you have not done so already, you must add the output of the
yarn global bin
command to your path to be able to run global Yarn packages. Take into consideration that the Yarn Team considers global installation of a package as a bad practice in most cases.
Note: The CLI has
@preemptive/pjsd-core
as its peerDependency so you must install that package in order to use the CLI.