← centrs docs

input/invalid-command

The command line or request was malformed: an unknown command, sub-command or flag, or an argument that is missing or invalid. centrs stopped before connecting: nothing was sent.

Context

Depends on the trigger: an unknown flag carries flag and suggestions; a missing target carries missingTarget and command.

Typical triggers

An unknown top-level command is reported before flags are read, so it prints as text even with --json.

Fix

If this looks wrong

If the flag is in centrs <command> --help and is still rejected, open an issue with the command line, the --json envelope and centrs --version. Remove passwords (--password, --cdb-password) and other secrets from both first.