Description
Runs diagnostic checks to verify your DevDaily setup. Checks for required dependencies, authentication, and provides troubleshooting guidance. Aliases:check, setup
Usage
Options
Attempt to fix issues automatically (installs missing tools, runs auth)
Examples
Run diagnostics
Auto-fix issues
Checks Performed
Node.js
- Check: Node.js version >= 18
- Status: Version number
- Fix: Install from https://nodejs.org
Git
- Check: Git CLI installed
- Status: Version number
- Fix: Install from https://git-scm.com
GitHub CLI
- Check:
ghcommand available - Status: Version number
- Fix: Install from https://cli.github.com
GitHub Authentication
- Check:
gh auth statussucceeds - Status: Authenticated or not
- Fix: Run
gh auth login
Copilot CLI
- Check: Copilot CLI or
gh copilotextension - Status: Version or type (new/legacy)
- Fix: Run
brew install copilot-cli
Status Icons
- ✓ OK - Check passed
- ⚠ Warning - Non-critical issue
- ✗ Error - Critical issue
Example Output
Auto-Fix
With--fix, the doctor will attempt to:
GitHub Authentication
Runsgh auth login interactively:
- Choose authentication method (browser, token)
- Select account
- Grant permissions
Copilot CLI Installation
Attempts to install via Homebrew:Quick Setup Guide
If issues are found, the doctor shows a quick setup guide:Common Issues
Node.js Version Too Old
Issue: Node.js < 18 Fix: Upgrade Node.jsGitHub CLI Not Found
Issue:gh command not available
Fix: Install GitHub CLI
Not Authenticated
Issue:gh auth status fails
Fix: Authenticate
- GitHub.com or Enterprise
- HTTPS or SSH
- Authenticate via browser or token
Copilot CLI Not Found
Issue: Neithercopilot nor gh copilot found
Fix: Install Copilot CLI
Legacy Copilot Extension
Issue: Usinggh copilot instead of standalone copilot
Status: Warning (not error)
Fix: Upgrade to new CLI
Requirements
- Node.js >= 18 (required)
- Git (required)
- GitHub CLI (required for PR creation, GitHub Issues)
- Copilot CLI (required for AI generation)
Exit Codes
0- All checks passed1- One or more errors found