varitykit doctor
Validate your development environment and identify any issues.
varitykit doctor [OPTIONS]What It Checks
Section titled “What It Checks”The doctor command performs 8 checks across 4 categories:
System Requirements
Section titled “System Requirements”| Check | Requirement |
|---|---|
| Python version | >= 3.8 |
| Node.js version | >= 18.0 |
| npm version | Any |
| Docker | Running (optional) |
Environment Variables
Section titled “Environment Variables”| Variable | Status |
|---|---|
NEXT_PUBLIC_PRIVY_APP_ID | Auto-provided (or set your own) |
VARITY_API_KEY | Auto-provided via credential proxy |
Network Connectivity
Section titled “Network Connectivity”- Varity platform connection
- Storage API access
- Storage gateway access
Project Structure
Section titled “Project Structure”package.jsonexists- Build script defined
- Dependencies installed
Example Output
Section titled “Example Output”$ varitykit doctor
╭──────────────────────────────────────╮│ Varity Environment Check ││ Validating your development setup... │╰──────────────────────────────────────╯
1/4 Checking required tools...2/4 Checking system resources...3/4 Checking project configuration...4/4 Checking network connectivity...
Environment Check Results╭────────────────────────┬────────────────────────┬──────────────┬─────────────╮│ Category │ Check │ Status │ Details │├────────────────────────┼────────────────────────┼──────────────┼─────────────┤│ Required Tools │ node │ ✓ PASS │ ... ││ Required Tools │ npm │ ✓ PASS │ ... ││ Required Tools │ git │ ✓ PASS │ ... ││ System │ Disk Space │ ✓ PASS │ ... ││ System │ Memory │ ✓ PASS │ ... ││ Project │ varity.config.json │ ⚠ WARN │ Run init ││ Project │ .env File │ ⚠ WARN │ Optional ││ Network │ Internet │ ✓ PASS │ Connected │╰────────────────────────┴────────────────────────┴──────────────┴─────────────╯
Total: 8 checks
╭─────────────────────────────────────────────────────────────────────────╮│ ✓ All checks passed! ││ Your environment is ready. Run varitykit app deploy to deploy your app. │╰─────────────────────────────────────────────────────────────────────────╯Options
Section titled “Options”| Option | Description |
|---|---|
--fix | Attempt to auto-fix common issues |
--full | Run full diagnostics including all infrastructure checks |
Exit Codes
Section titled “Exit Codes”| Code | Meaning |
|---|---|
| 0 | All checks passed |
| 1 | Some checks failed |
| 2 | Critical failure (cannot proceed) |
Fixing Common Issues
Section titled “Fixing Common Issues”Missing Node.js
Section titled “Missing Node.js”# macOSbrew install node
# Ubuntucurl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -sudo apt install -y nodejs
# Windows# Download from nodejs.orgMissing Environment Variables
Section titled “Missing Environment Variables”Storage, authentication, and deployment credentials are auto-provided by Varity’s credential proxy. No manual credential setup is required.
If you need to override the default app ID, create a .env.local file in your project root:
NEXT_PUBLIC_VARITY_APP_ID=your-app-idDocker Not Running
Section titled “Docker Not Running”# macOS/Windows# Open Docker Desktop
# Linuxsudo systemctl start dockerVerbose Output
Section titled “Verbose Output”For more detailed diagnostics:
varitykit doctor --fullThis runs all infrastructure checks in addition to the standard environment checks.
Next Steps
Section titled “Next Steps”- Initialize a project - Create a new project
- Deploy your app - Go to production
Related Resources
Section titled “Related Resources”- CLI Installation - Install the CLI
- Troubleshooting - Fix common issues
- Environment Variables - Required configuration