p5js
Version:
The p5.js CLI.
67 lines (44 loc) ⢠1.63 kB
Markdown
# The p5.js CLI
[](https://github.com/archtaurus/p5js-cli/actions/workflows/publish.yml)
[](https://www.npmjs.com/package/p5js)
[](https://github.com/archtaurus/p5js-cli/blob/master/LICENSE)
[](https://www.npmjs.com/package/p5js?activeTab=dependencies)
[](https://github.com/archtaurus/p5js-cli)
[](https://www.npmjs.com/package/p5js)
This [p5.js](https://p5js.org) 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
``` shell
npm i -g p5js
```
šŖ Upgrade this CLI to the latest version.
``` shell
npm update -g p5js
```
----
## š” Usage
⨠Create a new sketch, start coding and serving at once.
``` shell
p5js new <sketch> --run
```
š Congratulations! Now you can edit the `sketch.js` file to show your creativity!
----
š List all your sketches.
``` shell
p5js list
```
š Open sketch with VS code.
``` shell
p5js code <sketch> [--run]
```
š Serve an exsiting sketch.
``` shell
p5js run <sketch> [--code]
```
ā¤ļø You are welcome to discover more.
``` shell
p5js [command] --help
```