https://github.com/archtaurus/p5js-cli
The p5.js CLI.
https://github.com/archtaurus/p5js-cli
cli p5js
Last synced: 11 months ago
JSON representation
The p5.js CLI.
- Host: GitHub
- URL: https://github.com/archtaurus/p5js-cli
- Owner: archtaurus
- License: mit
- Created: 2021-04-03T14:20:37.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-08-17T00:45:03.000Z (almost 3 years ago)
- Last Synced: 2025-07-07T11:18:26.783Z (11 months ago)
- Topics: cli, p5js
- Language: JavaScript
- Homepage:
- Size: 1.9 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 --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 [--run]
```
🐎 Serve an exsiting sketch.
``` shell
p5js run [--code]
```
❤️ You are welcome to discover more.
``` shell
p5js [command] --help
```