Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

p5js

archtaurus11.8kMIT1.2.18

The p5.js CLI.

p5.js, cli

readme

The p5.js CLI

Build and Publish npm GitHub Dependencies Status Last Commit Download Total

This p5.js CLI helps you to manage p5.js sketches quickly and easily:

  • creating p5.js sketches in ~/Sketches directory.
  • open your sketch with VS code and start to code.
  • serving them in your browser with hot reloading.

🐙 Install

npm i -g p5js

💪 Upgrade this CLI to the latest version.

npm update -g p5js

💡 Usage

✨ Create a new sketch, start coding and serving at once.

p5js new <sketch> --run

🎉 Congratulations! Now you can edit the sketch.js file to show your creativity!


🔍 List all your sketches.

p5js list

🐝 Open sketch with VS code.

p5js code <sketch> [--run]

🐎 Serve an exsiting sketch.

p5js run <sketch> [--code]

❤️ You are welcome to discover more.

p5js [command] --help