Skip to content

Repository files navigation

@cathedral/cli

Command-line interface for Cathedral — derive candidate requirements from pull requests and source code, and run quality gate checks against your requirements knowledge base.

Installation

npm install -g @cathedral/cli
# or use without installing:
npx @cathedral/cli --help

Requires Node.js ≥ 24.8.0.

Commands

cathedral analyze-pr

Fetch a GitHub PR diff and derive candidate requirements via Cathedral.

cathedral analyze-pr \
--endpoint https://cathedral.example.com \
--token <cathedral-pat> \
--repo owner/repo \
--pr 42 \
--solution my-solution \
--github-token <github-pat> \
--format text
FlagEnv varRequiredDescription
--endpointCATHEDRAL_ENDPOINTCathedral instance URL
--tokenCATHEDRAL_TOKENCathedral PAT
--repoGitHub repo in owner/repo format
--prPull request number
--solutionCathedral solution slug
--github-tokenGITHUB_TOKENGitHub token to fetch the diff
--formatjson (default) or text
--post-commentPost findings as a PR comment

cathedral analyze-code

Analyze source files and derive candidate requirements.

cathedral analyze-code \
--endpoint https://cathedral.example.com \
--token <cathedral-pat> \
--product <product-uuid> \
--solution my-solution \
src/auth.ts src/payments.ts
FlagEnv varRequiredDescription
--endpointCATHEDRAL_ENDPOINTCathedral instance URL
--tokenCATHEDRAL_TOKENCathedral PAT
--productCathedral product UUID
--solutionCathedral solution slug
--formatjson (default) or text
[files...]Source files to analyze

cathedral check

Run the Cathedral check engine against a solution and exit non-zero on error-severity diagnostics (useful as a CI gate).

cathedral check \
--endpoint https://cathedral.example.com \
--token <cathedral-pat> \
--solution my-solution
FlagEnv varRequiredDescription
--endpointCATHEDRAL_ENDPOINTCathedral instance URL
--tokenCATHEDRAL_TOKENCathedral PAT
--solutionCathedral solution slug
--formatjson (default) or text

Exit codes

CodeMeaning
0Success — findings only, no blocking diagnostics
1Error-severity diagnostics present (Production enforcement)
2Authentication or connectivity failure

GitHub Action

For PR-level automation, use the companion GitHub Action:

- uses: final-hill/cathedral-action@v1with:
endpoint: ${{ vars.CATHEDRAL_ENDPOINT }}token: ${{ secrets.CATHEDRAL_TOKEN }}solution: my-solutionenforcement-level: Production

See final-hill/cathedral-action for full documentation.

Related

About

Cathedral CLI — analyze pull requests and code against your Cathedral requirements knowledge base

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages