Linux command
p5 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start new project
p5 new [project_name]
Generate sketch
p5 generate [sketch_name]
Run sketch server
p5 run
List available templates
p5 list
说明
p5 is a CLI for p5.js creative coding. Scaffolds and manages projects. The tool helps create p5.js sketches. Development workflow automation.
参数
- new _NAME_
- Create new project.
- generate _NAME_
- Generate sketch.
- run
- Start development server.
- list
- List templates.
- --help
- Display help information.
FAQ
What is the p5 command used for?
p5 is a CLI for p5.js creative coding. Scaffolds and manages projects. The tool helps create p5.js sketches. Development workflow automation.
How do I run a basic p5 example?
Run `p5 new [project_name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does new _NAME_ do in p5?
Create new project.