Skip to main content

Description

Runs diagnostic checks to verify your DevDaily setup. Checks for required dependencies, authentication, and provides troubleshooting guidance. Aliases: check, setup

Usage

Options

boolean
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

GitHub CLI

GitHub Authentication

  • Check: gh auth status succeeds
  • Status: Authenticated or not
  • Fix: Run gh auth login

Copilot CLI

  • Check: Copilot CLI or gh copilot extension
  • 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

Runs gh auth login interactively:
You’ll be prompted to:
  1. Choose authentication method (browser, token)
  2. Select account
  3. Grant permissions

Copilot CLI Installation

Attempts to install via Homebrew:
Requires Homebrew on macOS/Linux.

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.js

GitHub CLI Not Found

Issue: gh command not available Fix: Install GitHub CLI

Not Authenticated

Issue: gh auth status fails Fix: Authenticate
Choose:
  1. GitHub.com or Enterprise
  2. HTTPS or SSH
  3. Authenticate via browser or token

Copilot CLI Not Found

Issue: Neither copilot nor gh copilot found Fix: Install Copilot CLI

Legacy Copilot Extension

Issue: Using gh 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 passed
  • 1 - One or more errors found

After Fixing Issues

Once all checks pass, run the setup:
This will configure aliases, completions, and integrations.