p5js
v1.2.18
Published
The p5.js CLI.
Downloads
169
Readme
The p5.js CLI
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