Commands
This page provides a reference for all commands available in the regis-cli tool.
Global Options
| Option | Description |
|---|---|
-v, --verbose | Enable verbose (DEBUG) logging for troubleshooting. |
--help | Show the help message and exit. |
Core Commands
analyze
Analyze a Docker image and evaluate playbooks.
regis-cli analyze [OPTIONS] URL
Options:
-p, --playbook PATH: Path or URL to custom playbook YAML/JSON file(s).-s, --site: Generate HTML report site.--auth REGISTRY=USER:PASS: Provide registry credentials.--cache: Use existing report.json as cache if available.-o, --output TEMPLATE: Output filename template.-D, --output-dir TEMPLATE: Base directory template for output files.--evaluate: Run rules evaluation after analysis and add results to report.--fail: Fail command execution if any rule is breached.--fail-level [info|warning|critical]: Minimum rule level that triggers a command failure (default: critical).--base-url PATH: Base URL for the HTML report site (useful for GitHub/GitLab Pages or artifacts).--open: Open the HTML report in the default browser automatically.-A, --archive DIR: Append the report to an archive directory (writesmanifest.jsonanddata.json).
archive add
Add an existing report.json to an archive directory.
regis-cli archive add REPORT_PATH --archive-dir DIR
evaluate
Evaluate playbooks against an existing analysis report (dry-run).
regis-cli evaluate [OPTIONS] INPUT_PATH
Options:
-p, --playbook PATH: Path or URL to custom playbook YAML/JSON file(s).-s, --site: Generate HTML report site.--base-url PATH: Base URL for the HTML report site.--open: Open the HTML report in the default browser automatically.
check
Check if an image manifest is accessible on the registry.
regis-cli check [OPTIONS] URL
Rules Commands
Manage and evaluate rules against reports.
rules list
List all available default rules provided by analyzers, and optionally merge with overrides.
regis-cli rules list [--rules playbook.yaml]
rules show
Show the full JSON definition of a specific rule.
regis-cli rules show <slug> [--rules rules.yaml]
rules evaluate
Evaluate a regis-cli JSON report against rules.
regis-cli rules evaluate <report.json> [--rules playbook.yaml] [--fail] [--fail-level critical] [-o output.json]
Project Bootstrapping
bootstrap playbook
Bootstrap a new custom RegiS playbook from a template.
regis-cli bootstrap playbook [OUTPUT_DIR] [--no-input]
bootstrap archive
Bootstrap a standalone archive viewer site for browsing and filtering historical regis-cli reports. The generated site is built with Docusaurus and Tremor, deploys to GitHub Pages or GitLab Pages, and exposes a PowerBI-compatible JSON endpoint.
regis-cli bootstrap archive [OUTPUT_DIR] [OPTIONS]
Options:
| Option | Default | Description |
|---|---|---|
--no-input | False | Skip cookiecutter prompts; use template defaults. |
--platform [github|gitlab] | (prompt) | Target platform. Skips the cookiecutter platform prompt. |
--dev | False | After scaffolding, run pnpm install and start the local dev server. |
--port INTEGER | 3000 | Port for the dev server (only with --dev). |
--repo | False | After scaffolding, create a remote repository and enable Pages. |
--repo-name TEXT | project slug | Name of the remote repository (only with --repo). |
--public / --private | public (GitHub) / private (GitLab) | Repository visibility (only with --repo). |
--org TEXT | (current user) | Organisation or GitLab group (only with --repo). |
--sync-from PATH | — | Sync UI changes from a working copy back to the cookiecutter template. See Customizing the Archive UI. |
--dev and --repo are mutually exclusive.
--dev mode — local iteration without a remote repository:
regis-cli bootstrap archive ./my-archive --no-input --dev
# Scaffolds, runs pnpm install, starts http://localhost:3000
--repo mode — full remote setup:
- Checks that
pnpm,git, andgh/glabare available and authenticated. - Scaffolds the archive site.
- Runs
pnpm install. - Creates an initial git commit.
- Creates the remote repository (
gh repo createorglab repo create). - Enables GitHub Pages in workflow mode (GitHub only; GitLab Pages activates via the
pagesjob). - Prints the expected Pages URL and the command to add your first report.
regis-cli bootstrap archive ./my-archive --repo --platform github --no-input
If the remote repository already exists (for example after a failed first attempt), the creation step is skipped and the code is pushed to the existing repository.
After a successful bootstrap, all bootstrap commands display Post-install notes from the template (and then remove the temporary .regis-post-install.md file). These notes contain setup instructions for GitHub/GitLab and next steps.
Utility Commands
gitlab
Commands for seamless integration with GitLab CI/CD.
gitlab create-request: Create a Merge Request comment with analysis status.gitlab update-mr: Update Merge Request with final results and labels.
list
List all available analyzers (e.g., skopeo, trivy, hadolint).
version
Display the current version of regis-cli.