Skip to content

feat(cli): add --help, --version, and status subcommand - #271

Open
TerminalGravity wants to merge 1 commit into
mainfrom
feat/cli-help-version-status
Open

feat(cli): add --help, --version, and status subcommand#271
TerminalGravity wants to merge 1 commit into
mainfrom
feat/cli-help-version-status

Conversation

@TerminalGravity

Copy link
Copy Markdown
Collaborator

Adds proper CLI argument handling to preflight-dev:

  • preflight-dev --help — shows usage, quick start one-liner, and docs link
  • preflight-dev --version — prints package version from package.json
  • preflight-dev status — checks if preflight is configured (.mcp.json, .preflight/ dir, env vars)

Previously running npx preflight-dev with no args dropped straight into the interactive wizard with no way to get help or check status. Now users can orient themselves first.

Also adds a CLI commands section to the README under Quick Start.

- preflight-dev --help shows usage, quick start, and one-liner setup
- preflight-dev --version prints package version
- preflight-dev status checks .mcp.json, .preflight/ dir, and env vars
- Updated README with CLI commands section

@TerminalGravity TerminalGravity left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM — this was a real gap in the CLI UX. The version fallback chain for dist/ builds is a nice touch. One minor thought: might be worth supporting preflight-dev help (no dashes) as an alias since that's what people type instinctively, but not blocking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant