Getting Started with p5.js I (v1)

The p5.js Command Line Interface

We will use the Node.js to innstall the p5-manager on the computer.

Open your terminal and run this command to install the p5 manager:

npm install -g p5-manager

What that did was use NPM (a package manager for programs written in Node.js) to install the p5-manager library (that's us!) globally (-g) on your machine.

To see if it worked, try running

p5 --version

from your command line. If the command works and outputs a number, the CLI is installed correctly.

  • See more about p5-cli
  • See more about p5- manager