monkeys

doctor

Show what a profile has and lacks.

monkeys doctor [--short]

Reads the whole .monkeys file and shows every profile with what it has and lacks, in colour on a terminal. It exits non-zero while anything is missing:

monkeys doctor
@test  default
  ✓ DATABASE_URL
  ✓ STRIPE_SECRET_KEY
@production
  ✓ DATABASE_URL
  ✗ STRIPE_SECRET_KEY
  ✗ SENTRY_DSN

A value line counts as present and is shown with its value:

@test  default
  ✓ DATABASE_URL
  ✓ STRIPE_SECRET_KEY
  ✓ API_URL=http://localhost:8080

--short

--short says only what is wrong: one line per profile with a problem, and nothing at all when there is none. That is the form to hand a script or an agent:

monkeys doctor --short
missing @production: STRIPE_SECRET_KEY,SENTRY_DSN

The keys are joined with commas, one word per profile, so a line reads back as the remember that would fix it.

On this page