redline doctor

Check this machine can run Redline here: Node, git, the remote, a credential, onboarding.

Checks whether this machine can run Redline against the repository you are in: the Node version, git, whether origin points at a host Redline supports, a credential, and whether .redline.json is present. Every line that is not ok prints the fix beneath it. Run it first on a new laptop, and paste its output into a bug report.

Where it runs: Anywhere, including before onboarding. It contacts no host, needs no credential, and runs on a Node version too old for every other command.

Synopsis

synopsis
redline doctor [--json]

Flags

FlagDefaultWhat it does
--jsonoffEvery check as JSON on stdout: name, status, detail and fix, plus an overall ok.

--help prints the same list from the CLI you have installed.

Examples

Before onboarding

terminal
$ npx redlinegate@latest doctor

ok    node                   v24.21.0 — at or above the required 18.11
ok    git                    git version 2.54.0 (Apple Git-157)
ok    remote                 github — acme/web-app
ok    credential             gh is logged in as your-user
warn  onboarded              no .redline.json here yet
        npx redlinegate init

Exit codes

CodeMeaning
0Every check is ok or warn. A warning is not a failure.
1At least one check is FAIL.