Rehearsal for VS Code#
The free Starter extension gives your project's Rehearsal CLI a visual workbench for reviewing migrations, running a sandbox and inspecting results.
On this page#
- What you can do
- Requirements and installation
- Install from a GitHub VSIX
- Move from an older preview
- Everyday workflow
- Stop services or shut down the VM
- Update preferences
- Privacy
- License and support
Install from VS Code Marketplace
or a verified GitHub VSIX. The canonical ID is rehearsal-db.rehearsal-db, published
by rehearsal-db. See the release catalog
for available versions. Confirm the target version appears in its official channel before installing.
What you can do#
- See project readiness and the next useful setup action.
- Review exact migrations, approval digests and supported migration insights.
- Run your application's proof or open a hands-on local sandbox.
- Review configuration changes, resource cleanup and redacted reports.
Starter 1.1 with Core 2.6+ keeps supported PostgreSQL/Supabase configuration, baseline and migration inspection available when the engine is not ready. Sandbox actions still require live readiness; native toolchain and platform limits remain unchanged.
Prisma Migrate 7 and Prisma 8 RC are separate supported profiles. Prisma 8 reviews compiled graph/hash identities without SQL source navigation, SQL Insights or impact measurements. See toolchain support for profile limits. SQLite has its own file-based workflow.
Core owns database execution and safety boundaries. The extension guide explains individual pages, controls, settings and recovery states.
Install and open your project#
Before you start#
Use desktop VS Code, a supported project-local Node/Core installation and the local runtime required by your target. See Compatibility for exact versions and qualified native-integration hosts. You do not need the extension source repository or Test Lab.
Windows: use WSL 2#
Follow the WSL 2 Linux-workspace setup. Install the extension into the Linux extension host and keep the project on its Linux filesystem. WSL compatibility remains a preview; native Windows inspection and foreground actions refuse before launching a child process.
Browser-based VS Code, Codespaces, SSH and Dev Containers have no end-to-end support claim. Consult the platform matrix before using another extension host.
Install from Marketplace#
Open your application's folder, containing
package.jsonand migrations. Install the CLI there if needed:bashnpm install --save-dev @rehearsal-db/coreOpen Extensions, search
@id:rehearsal-db.rehearsal-dband confirm publisherrehearsal-dbbefore choosing Install. The legacy IDrehearsal-db.rehearsalis a different package; migrate it using the steps below.Review Workspace Trust, then choose Rehearsal: Open Dashboard in the Command Palette.
Follow Next best step and review the detected project and active configuration. Setup, source access, migration execution and cleanup retain their own confirmations.
Core compatibility and setup help#
Core and Starter have independent version numbers. Check the release snapshot and profile configuration together: installing a new extension does not add missing capabilities to an older Core package. For a Core 1.x project, review the lifecycle upgrade notes before updating.
Opening the dashboard does not start a database or run a migration. For an unprepared project, follow Getting started. A Project package link needs repair message means the editor cannot safely resolve the package inside the project; use the tutorial's local-copy instructions or a reviewed published package instead of bypassing containment checks.
Direct GitHub installation#
Open the Starter releases and select Starter 1.1.0.
Download
rehearsal-db-1.1.0.vsixandSHA256SUMSfrom Assets.Calculate the file's SHA-256:
macOS
shshasum -a 256 /path/to/rehearsal-db-1.1.0.vsixLinux
shsha256sum /path/to/rehearsal-db-1.1.0.vsixCompare it with that release's
SHA256SUMS. Stop if they differ.Choose Extensions → … → Install from VSIX… and select the verified file.
Save your work and reload only when ready if VS Code asks.
Keep a previous verified VSIX for rollback. Finish active commands before changing versions.
Move from a preview through 0.1.18#
Older previews use the separate identity rehearsal-db.rehearsal; switching requires
an explicit uninstall, not an automatic rename.
- Finish Rehearsal commands in every project window. Stop an open sandbox session with Ctrl+C in its owning terminal, wait for the shell prompt and save your work.
- Explicitly uninstall the legacy extension: search
@id:rehearsal-db.rehearsalin Extensions, then choose its gear menu → Uninstall. - Run Developer: Reload Window. Remove the old installation from every profile where you will use the canonical extension.
- Install
rehearsal-db.rehearsal-dbusing the instructions above and review its update preferences.
The canonical extension refuses activation while VS Code reports the legacy ID. Migration preserves project configuration, keys, baselines, databases and Storage. Private editor view state and metadata-check consent start fresh under the new identity; shared VS Code user settings, including automatic-update choices, retain their existing values. Review those choices after migration. Nothing forces a reload or interrupts commands.
Everyday editor workflow#
Open the dashboard, resolve readiness items, review pending migrations and approve the exact operation. Save migration files before reviewing their digest. Use the sandbox app for hands-on checks, then inspect verification results and export a redacted report. When Core is busy, wait or cancel through the owning operation before starting another.
For page-by-page controls, configuration diffs, activity and recovery messages, use the workbench guide. For database retention and cleanup behavior, use Runtime lifecycle.
Stop services or shut down the VM#
Stop retains the selected runtime's data. Discard removes its disposable data. VM shutdown affects the shared container engine and may disrupt other projects; review the workload preview before confirming. Availability depends on the qualified VM scope.
Optional automatic updates#
The first dashboard offers two independent, initially unchecked choices: update the extension and update the project's Core package. Both are off by default. Manual updating stays available through Releases and updates.
Automatic extension updates verify the official VSIX and never force a reload. Core updates require a compatible, verified npm installation and preserve configuration; unsupported origins, package managers or major-version changes need manual review. Active work defers installation. Review resulting dependency changes before committing.
Use the dashboard's update controls or the rehearsal.automaticUpdates setting to
change consent. CLI-guide release checks have their own preference; neither choice
enables the other. Exact settings and blocked-update recovery are documented in
Keep the canonical installation current.
Privacy boundary#
Starter has no telemetry. Passive inspection is read-only; process execution requires Workspace Trust. Consented update checks contact public distribution services, not a Rehearsal account service. Review exported reports before sharing and never post rows, credentials, connection strings, private migrations or baseline files.
License and support#
Included Starter features are free indefinitely for personal or commercial development under the Starter license. No account, payment card, purchase, trial period, or license activation is required. Core is separately MIT-licensed.
Support is best effort through GitHub issues. Report vulnerabilities privately using SECURITY.md.
Try the free engine first#
Follow Getting started or the safe hands-on tutorial, then open that same project in VS Code.