Registry / auth-security / redblue-cli

redblue-cli

JSON →
library0.2.33jsnpmunverified

redblue is a security CLI tool written in Rust, providing 90+ commands for network scanning, DNS, recon, web fuzzing, TLS, authentication testing, exploit, binary analysis, password cracking, evasion, secrets detection, vulnerability intelligence, and proxy/C2 capabilities. The npm package redblue-cli v0.2.33 wraps the rb binary for JavaScript/TypeScript ecosystems, supporting npx and npm exec. Requires Node.js >=20. It is actively maintained with frequent releases. Key differentiator: zero-dependency binary with 40+ protocols implemented from scratch.

npm install redblue-cli
INSTALL
IMPORT
SIG · REDBLUE-CLI
R
redblue-cli
auth-securityjavascriptv0.2.33
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import redblue from 'redblue-cli'
const redblue = require('redblue-cli')
ESM-only since v0.2.0; CommonJS require is not supported.
rb
import { rb } from 'redblue-cli'
const rb = require('redblue-cli').rb
Use named import for the rb function which executes the CLI.
RedblueConfig
import type { RedblueConfig } from 'redblue-cli'
TypeScript type available for configuration object.

Shows how to use the redblue-cli SDK to run various security commands: DNS lookup, TLS cipher scan, and subdomain bruteforce.

import { rb } from 'redblue-cli'; async function main() { // Run a DNS lookup with custom options const result = await rb('dns', 'record', 'lookup', 'example.com', '--type', 'MX'); console.log('DNS records:', result); // Run a TLS cipher enumeration const tlsResult = await rb('tls', 'cipher', 'scan', 'example.com', '--port', '443'); console.log('TLS ciphers:', tlsResult); // Run a subdomain discovery const subdomains = await rb('recon', 'subdomain', 'bruteforce', 'example.com', '--wordlist', '/path/to/wordlist.txt'); console.log('Subdomains found:', subdomains); } main().catch(console.error);
rb --version
Debug
Known issues
gotchaThe rb binary requires libc as a runtime dependency; ensure it's available on your system.
fix
Install libc (e.g., glibc on Linux) or use a static build if available.
affects: all
breakingVersion 0.2.0 changed from CJS to ESM; require() no longer works.
fix
Use dynamic import() or switch to ESM (type: module in package.json).
affects: >=0.2.0
deprecatedThe '--format' flag for output was replaced with '--output' in newer releases.
fix
Use '--output' instead of '--format'.
affects: <0.2.20
gotchaSome commands may require root privileges for raw sockets; they will fail silently if not permitted.
fix
Run the binary with sudo or appropriate capabilities (CAP_NET_RAW).
affects: all
gotchaThe npm package does not include the binary for all platforms; only linux-x86_64 is bundled. Other platforms must use the separate binary download.
fix
Install the binary manually for non-Linux systems or use a CI matrix.
affects: all
Errors
Common errors & fixes
Cannot find module 'redblue-cli'
The package is not installed or is missing from package.json.
fix
Run 'npm install redblue-cli' to install the npm package.
Error: spawn rb ENOENT
The rb binary is not found in PATH or not bundled with the npm package.
fix
Ensure the binary is installed via curl or download, and add it to PATH.
TypeError: rb is not a function
Using require() with ESM-only package version >=0.2.0.
fix
Use import { rb } from 'redblue-cli' or dynamic import.
Error: Command failed with exit code 1: rb dns record lookup example.com --type MX
The DNS lookup failed, possibly due to network issues or invalid domain.
fix
Check network connectivity and domain name; use --verbose for more details.
Upgrade
Version history
0.2.33latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
16
OpenAI (training)
1
Resources
redblue-cli — npm install redblue-cli · libregistry