Skip to content

Latest commit

Β 

History

History
66 lines (44 loc) Β· 1.59 KB

File metadata and controls

66 lines (44 loc) Β· 1.59 KB

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