Project-new is my personal Bash script that simplifies the process of creating new projects across various frameworks and technologies. It provides a unified command-line interface for initializing projects, making it easier to start new development work regardless of the chosen technology stack.
The basic syntax for using project-new is:
new [type] [app-name] [arguments...]
[type]: The project type or framework (e.g., react, vue, django)[app-name]: The name of your new project[arguments...]: Any additional arguments to pass to the project creation command
Create a new React app:
new react my-react-app
Crear un proyecto y abrirlo en VS Code:
new react my-react-app --open code
Crear un proyecto y abrirlo en Cursor:
new react my-react-app -o cursor
Create a new Django project with additional arguments:
new vite my-vite-app --template=vue
--helpor-h: Display help information--templatesor-t: Show all available project templates--add-template: Add or override a custom template--remove-template: Remove a custom template--openor-o [editor]: Open the project in your chosen code editor after creation. Supported editors:code→ VS Code:code .cursor→ Cursor:cursor .zed→ Zed:zed .subl→ Sublime:subl .idea→ IntelliJ:idea .webstorm→ WebStorm:webstorm .phpstorm→ PhpStorm:phpstorm .pycharm→ PyCharm:pycharm .goland→ GoLand:goland .studio→ Android Studio:studio .vim→ Vim:vim .nvim→ Neovim:nvim .
Project-new supports a wide range of project types:
AdonisJS, Angular, Astro, Django, Express, Fastify, Flask, Gatsby, Hono, Laravel, Marko, NestJS, Next.js, Nuxt, Payload, Poem, Qwik, Rails, React, RedwoodJS, Remix, Rust, SolidJS, Spring, Strapi, Svelte, SvelteKit, T3, TanStack, Vite, Vue
If you use Homebrew, you can install project-new with:
brew install eypacha/project-new/project-newThe fastest way to install is with a single command:
curl -fsSL https://raw.githubusercontent.com/eypacha/project-new/master/install.sh | bashThis will:
- Create $HOME/bin if it doesn't exist
- Download the latest script to $HOME/bin/new
- Make it executable
- Add $HOME/bin to your PATH if needed (for zsh or bash)
After installation, restart your terminal or run:
source ~/.zshrc # or source ~/.bashrcYou can now use the new command from anywhere in your terminal!
If you prefer, you can follow these steps manually:
# 1. Create the bin directory in your home if it doesn't exist
mkdir -p "$HOME/bin"
# 2. Download the script
curl -fsSL https://raw.githubusercontent.com/eypacha/project-new/master/bin/new -o "$HOME/bin/new"
# 3. Make it executable
chmod +x "$HOME/bin/new"
# 4. Add $HOME/bin to your PATH if it's not already there
echo 'export PATH="$HOME/bin:$PATH"' >> ~/.zshrc # or ~/.bashrc
# 5. Reload your shell configuration
source ~/.zshrc # or source ~/.bashrcNow you can use the new command from anywhere in your terminal!
For detailed help and all available options, you can run:
./new --helpIf you encounter any issues:
- Make sure you have the necessary permissions to execute the script.
- If the
newcommand is not recognized, try restarting your terminal or runningsource ~/.bashrc(orsource ~/.zshrcfor Zsh users) again. - Check that the path in your
.bashrcor.zshrcfile is correct.
For more help, please open an issue on our GitHub repository.
Contributions to Project-new are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.