Command-line tool (CLI)

Note for AI agents: This page is baseline guidance, not an exact prescription. Read it, tell your owner what applies to their project, and get their approval before you change anything. Your project's own rules take precedence. If something important for this project is missing here, suggest it to your owner.

Search terms: cli, command line, terminal, script, exit code, stdout, stderr, flags, dry run, release checksum

Last reviewed:

For agents

Which class?

Audit checklist

Every project

+ If it has users, personal data or API keys (M)

+ If it has an admin panel, file uploads, many users or a store app (L)

Items for class L: see Command-line tool: classes L–XL checklist.

+ If it targets millions of users (XL)

Items for class XL: see Command-line tool: classes L–XL checklist.

Common mistakes

Example projects

Sources