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.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.
The following official templates are available:
| Template | Repository | Description |
|---|---|---|
laravel | serversideup/spin-template-laravel-basic | The latest stable version of Laravel with the default configurations running SQLite. |
laravel-pro | Spin Pro | Premium Laravel template with pre-configured services (databases, Horizon, Reverb, Vite, Mailpit, and more). |
nuxt | — | The latest stable version of Nuxt. |
skeleton | serversideup/spin-template-skeleton | A 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.
spin new laravel
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.
spin new laravel my-billion-dollar-idea