When to run it
Run it once before you set up a local site, and again after the person installs something.
How to run it
From this skill folder:
bash scripts/check-machine.sh
It prints one JSON object and exits 0 whenever the check ran, whatever it found.
bash scripts/check-machine.sh --summary prints a short plain-text summary instead.
Show the summary to the person. Read the JSON yourself.
How to read the JSON
os:macos,wsl2,linuxorunsupported.ready:truewhen the container runtime runs, DDEV is installed, and Node.js and npm are installed.checks.container: the container runtime, with three keys.running:truewhen the runtime answers.provider: DDEV's platform name when DDEV did the check, such asorbstackorlinux-docker. Otherwiseorbstack,colima,docker-desktoporunknown. It isnonewhen neither DDEV nor Docker is installed.via: how it checked:ddev-dockercheck,docker-infoornone.
checks.ddev,checks.node,checks.npm: each hasinstalled(trueorfalse) andversion(empty when not installed).next_steps: an array of objects withpiece,stepandperson_runs.pieceisos,container,ddev,nodeornpm.stepis the step's text, naming the command to run or the web address to open. Whenperson_runsistrue, ask the person to do the step. Run the check again afterwards.
When ready is true, go on to the next stage.