resq-cli
Version:v0.3.0· License:Apache-2.0· Crate: crates.io · API docs: docs.rs
Overview
resq is the single entry point for all ResQ developer tooling. It wraps standalone TUI applications (logs, health, deploy, perf, clean, asm) and provides built-in commands for CI workflows, pre-commit hooks, and repository maintenance.
Legend: Blue = entry point, Purple = commands with subcommands, Green = TUI launchers.
Installation
resq at target/release/resq.
Cargo Aliases
The following workspace aliases are defined in.cargo/config.toml:
Commands
copyright — License Header Management
Adds or checks copyright/license headers across all source files in the repository. Supports multiple comment styles (C-style block, XML/HTML, hash-line, double-dash, Elisp, AsciiDoc). Shebangs (#!/...) are always preserved at line 0.
Arguments
Examples
lqip — Low-Quality Image Placeholders
Generates tiny base64-encoded data URIs from images for use as blur-up placeholders in web applications. Supports JPEG, PNG, and WebP formats.
Arguments
Examples
audit — Security & Quality Audit
Three-pass security and quality sweep covering all language ecosystems. Runs Google OSV Scanner (cross-ecosystem), npm audit-ci, and React Doctor.
Arguments
Examples
cost — Dependency Size Analysis
Fetches package sizes from registries (npm, crates.io, PyPI) and categorizes dependencies by download footprint into high (>10 MB), medium (1-10 MB), and low (<1 MB) buckets. Results are saved as JSON files.
Arguments
Examples
secrets — Secret Scanner
Scans source files for hardcoded credentials, API keys, private keys, tokens, and high-entropy strings. Uses pattern matching with entropy analysis (Shannon entropy with charset-specific thresholds for hex, base64, and alphanumeric strings) and Aho-Corasick multi-pattern matching for performance.
Arguments
Examples
tree-shake — TypeScript Dead Code Removal
Runs tsr to remove unused TypeScript exports from project entry points. Requires bun to be installed.
Arguments
This command takes no arguments.Examples
dev — Development Utilities
Unified entry point for repository-level development tasks.
Subcommands
dev kill-ports — Kill Processes on Ports
Finds and terminates processes listening on specified TCP ports.
dev sync-env — Sync Environment Variables to turbo.json
Scans .env.example files across the monorepo and synchronizes discovered environment variable names into turbo.json task configurations.
dev upgrade — Upgrade Dependencies
Upgrades dependencies across all language silos in the monorepo (Python/uv, Rust/cargo, JS/bun, C++/Conan, C#/dotnet, Nix).
dev install-hooks — Install Git Hooks
Configures git core.hooksPath to point at the .git-hooks directory and makes all hook scripts executable.
pre-commit — Unified Pre-Commit Hook
Runs a suite of checks suitable for a git pre-commit hook: copyright headers, secret scanning, formatting, audits, and versioning prompts. Includes an interactive TUI progress display.
Arguments
Examples
version — Monorepo Versioning
Manages package versions and changesets across the monorepo using a changeset-based workflow. Supports Cargo.toml, package.json, pyproject.toml, and Directory.Build.props manifests.
Subcommands
version add — Create a Changeset
version apply — Apply Version Bumps
Consumes all pending changesets, determines the highest bump level, updates all manifests, and appends to CHANGELOG.md.
version check — Verify Version Sync
Checks that all manifest files contain the same version string.
docs — Documentation Export
Exports and publishes OpenAPI specifications from the Infrastructure API and Coordination HCE services.
Arguments
Examples
TUI Launchers
These commands launch standalone TUI applications from the ResQ workspace. Each delegates to a separate binary viacargo run -p <tool>.
explore — Performance Monitor (resq-perf)
logs — Log Aggregator (resq-logs)
health — Health Dashboard (resq-health)
deploy — Deployment Manager (resq-deploy)
clean — Workspace Cleaner (resq-clean)
asm — Binary Analyzer (resq-bin)
Environment Variables
The
pre-commit and audit commands shell out to external tools (osv-scanner, bun, npx, audit-ci, react-doctor) which may read their own environment variables.
Configuration
- Project root detection: The CLI walks up the directory tree looking for
resQ.sln,package.json,Cargo.toml,pyproject.toml, or.gitto locate the project root. - Gitignore integration: The
secretsandcopyrightcommands parse.gitignorefor directory exclusion. When.gitignoreis missing, a built-in fallback list is used (node_modules,.git,dist,build,.next,target,__pycache__,.venv,venv,vendor,.turbo,coverage). - OSV Scanner config: If
osv-scanner.tomlexists at the project root, it is passed automatically to theauditcommand. - Secrets allowlist: Create a text file with one pattern per line and pass it via
--allowlist. - Changesets: Version changesets are stored as markdown files in
.changesets/at the repository root.