Skip to content

Latest commit

 

History

History
66 lines (44 loc) · 1.59 KB

README.md

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