This p5.js CLI helps you to manage p5.js sketches quickly and easily:
- creating p5.js sketches in
~/Sketchesdirectory. - open your sketch with VS code and start to code.
- serving them in your browser with hot reloading.
npm i -g p5jsπͺ Upgrade this CLI to the latest version.
npm update -g p5js⨠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