Prisma ORM 8 is here.Read the docs

git

Connect a GitHub repository for push-to-deploy.

Use git commands to manage the GitHub repository connection. Connecting enables the OIDC credential exchange for GitHub Actions deploys and the branch lifecycle automation. See GitHub integration and Deploy on push.

Usage

bunx prisma@latest git connect

Run it from a linked project directory. The command needs an interactive terminal: it opens the browser to install the GitHub App when needed and waits for the install. With --no-interactive it fails with CLI.INTERACTION_REQUIRED. Connecting from the CLI does not add a deploy workflow to the repository. Add it yourself, or connect through the Console, which opens a pull request with the workflow.

Commands

CommandDescription
git connect [git-url]Connect the linked project to a GitHub repository. Starts the GitHub App install flow if needed
git disconnectStop the credential exchange and branch automation. Keeps the project and existing branches

On this page