CLI Reference¶
Command-line entry points provided by the vibetuner package.
vibetuner scaffold¶
new¶
Creates a project from the local Vibetuner Copier template.
Options¶
--template,-t– Use a different template source (local path, git URL,github:user/repo, etc.).--defaults,-d– Accept default answers for every prompt (non-interactive).--data key=value– Override individual template variables. Repeat for multiple overrides.DESTINATIONmust not already exist.
Examples¶
# Interactive run
vibetuner scaffold new my-project
# Non-interactive defaults
vibetuner scaffold new my-project --defaults
# Override selected values in non-interactive mode
vibetuner scaffold new my-project \
--defaults \
--data project_name="My Project" \
--data python_version="3.12"
See the Scaffolding Reference for a complete description of template prompts and post-generation tasks.
update¶
Brings an existing project up to date with the current template.
PATHdefaults to the current directory.--skip-answered / --no-skip-answeredcontrols whether previously answered prompts are re-asked (defaults to skipping).- Exits with an error if
.copier-answers.ymlis missing.
vibetuner run¶
Starts framework services without Docker.
dev¶
- Sets
DEBUG=1and enables hot reload. servicedefaults tofrontend.- Frontend watches
src/app/andtemplates/for changes. - Worker runs the Streaq worker with reload enabled (ignores
--workers> 1).
prod¶
- Sets
ENVIRONMENT=production. - Disables hot reload and honors
--workersfor both frontend and worker services. - Useful for containerless deployments or reproducing production settings locally.
vibetuner db¶
Database management commands for SQL databases (SQLModel/SQLAlchemy).
create-schema¶
Creates all database tables defined in SQLModel metadata. This command:
- Imports models from
app.modelsto ensure they're registered - Creates tables in the database specified by
DATABASE_URL - Skips if tables already exist (safe to run multiple times)
Prerequisites:
DATABASE_URLenvironment variable must be set- Models must be defined using SQLModel with
table=True
Example:
# Set database URL
export DATABASE_URL=postgresql+asyncpg://user:pass@localhost/mydb
# Create tables
vibetuner db create-schema
Note: This command is only for SQL databases. MongoDB collections are created automatically when documents are inserted.
Related Commands¶
Generated projects expose additional helpers in the scaffolded justfile:
Development¶
just local-all– Runs server + assets in parallel with auto-port (recommended for local dev)just local-all-with-worker– Same as above but includes background worker (requires Redis)just local-dev– Runs server only (use withbun devin separate terminal)just worker-dev– Runs background worker onlyjust update-scaffolding– Updates project to latest template
Parallel Development¶
Work on multiple features simultaneously using isolated worktrees:
just feature-new NAME– Create isolated worktree with new branch from mainjust feature-list– List all active feature worktreesjust feature-done [NAME]– Remove worktree and delete merged branchjust feature-drop [NAME]– Force remove worktree and delete branch (even if unmerged)just feature-rebase– Rebase current branch on origin/main
The NAME parameter for feature-done and feature-drop is optional. If omitted, the command
auto-detects the current worktree. You can also pass a directory path instead of a branch name.
Use just --list inside a generated project to see all available commands.