prisma version command displays version information for the Prisma CLI and related dependencies.
Usage
Output
The command displays:- Prisma CLI version
- Current project directory
- Prisma engines version
- Node.js version
- Operating system information
Example output
Options
Output version information in JSON format
Display help information
Alias for
--helpJSON output
Use--json to get machine-readable output:
Use cases
Check installed version
Verify which version of Prisma is installed:Debug version mismatches
When reporting issues or debugging, version information is crucial:CI/CD integration
Use JSON output in automated scripts:Version compatibility check
Compare CLI and client versions to ensure compatibility:Binary targets
The output includes the computed binary target, which determines which Prisma engine binaries are downloaded. Common binary targets include:darwin-arm64- macOS on Apple Silicondarwin-x64- macOS on Intellinux-x64-gnu- Linux (glibc)linux-x64-musl- Linux (musl, e.g., Alpine)windows-x64- Windows
Environment information
The command reports:Node.js version
The version of Node.js running Prisma. Prisma requires:- Node.js 20.19 or higher
- Node.js 22.12 or higher
- Node.js 24.0 or higher
Operating system
The platform where Prisma is running:darwin- macOSlinux- Linuxwin32- Windows
Architecture
The CPU architecture:arm64- ARM 64-bit (Apple Silicon, ARM servers)x64- x86 64-bit (Intel/AMD)
Troubleshooting
Version mismatch
If CLI and client versions differ:Binary target issues
If the wrong binary target is detected, you can manually specify it in your schema:Related commands
prisma init
Initialize a new Prisma project
prisma generate
Generate Prisma Client