@turbostarter/cli
v1.4.0
Published
Your TurboStarter assistant for starting new projects, adding plugins and more.
Maintainers
Readme
TurboStarter CLI
Official CLI for creating and managing your TurboStarter projects.
Quick start
Run without installing globally:
npx turbostarter@latest <command>
pnpm dlx turbostarter@latest <command>
bunx turbostarter@latest <command>Or install globally and run:
npm install -g turbostarter
pnpm install -g turbostarter
bunx install -g turbostarter
turbostarter <command>[!NOTE] Commands that interact with the TurboStarter repository (updating, plugins, etc.) must be launched from the root of the repository, as they will read and write files from the codebase.
Usage
Usage: turbostarter [options] [command]
Your TurboStarter assistant for starting new projects, adding plugins and more.
Options:
-v, --version display the version number
-h, --help display help for command
Commands:
new create a new TurboStarter project
project manage your TurboStarter project
help [command] display help for commandRunning turbostarter --help shows the full command list.
Creating new project
Create a new TurboStarter project:
npx turbostarter@latest newOptions:
-c, --cwd <cwd>: Working directory where the new project folder is created (defaults to current directory).
What it does:
- Prompts for project name and app targets (web, mobile, extension).
- Optionally walks through provider configuration (db, billing, email, storage, analytics, monitoring).
- Clones the TurboStarter template repository.
- Configures git remotes.
- Applies app-specific file modifications.
- Installs dependencies and formats files.
- Starts required local services when needed.
Managing existing project
Set of commands for managing your existing TurboStarter project.
Updating project
Update an existing TurboStarter project with the latest upstream changes:
npx turbostarter@latest project updateOptions:
-c, --cwd <cwd>: Path to the TurboStarter project root (defaults to current directory).
What it does:
- Validates the target folder is a TurboStarter project root.
- Verifies the git working tree is clean before updating.
- Ensures
upstreamremote points toturbostarter/core(SSH or HTTPS). - Fetches upstream and merges
upstream/maininto the current branch. - Prints conflicting files with next steps if merge conflicts occur.
Development
From this repository:
pnpm install
pnpm devUseful scripts:
| Script | Description |
| -------------------------- | --------------------- |
| pnpm build | Build CLI to dist/ |
| pnpm start | Run built CLI |
| pnpm typecheck | Run TypeScript checks |
| pnpm lint | Run ESLint |
| pnpm format/format:fix | Check/fix formatting |
Documentation
Visit https://turbostarter.dev/docs/web/cli to view the documentation.
License
Licensed under the GNU General Public License v3.0.
