Command Reference

new

Create and initialize a new project with Spin.

Usage

Usage for "spin new"
spin new <template-name> <project-name>
<template-name> can either be an "official template" provided by the Spin team, or any GitHub repository in the format of username/repo.

Create a new project with Spin installed

Getting started with a new project is easy with Spin. Simply run the spin new command followed by your project name and Spin will create a new project for you with Spin installed.

Official Spin Templates

The following official templates are available:

TemplateRepositoryDescription
laravelserversideup/spin-template-laravel-basicThe latest stable version of Laravel with the default configurations running SQLite.
laravel-proSpin ProPremium Laravel template with pre-configured services (databases, Horizon, Reverb, Vite, Mailpit, and more).
nuxtserversideup/spin-template-nuxtThe latest stable version of Nuxt.
skeletonserversideup/spin-template-skeletonA bare-bones starting point for building your own template.

You can also pass any GitHub repository in the format of username/repo to use a community template.

Usage

Usage for "spin new"
spin new laravel

Optional - Specify your project name

By default, Spin will use the framework's default project name and create the project in the current directory of where you're running Spin. If you'd like to specify your own project name, simply add it as the second argument to the spin new command.

Example of "spin new" with custom project name

spin new laravel my-billion-dollar-idea