Application runner & helpers — a CLI tool and Node.js SDK for managing certificates, MongoDB instances, PostgreSQL, the system hosts file, processes, env files, and more.
Forerunner provides tools for:
- Certificate management: Generate CAs, signed certificates, SSH keypairs, and keyfiles
- MongoDB management: Download, configure, and run MongoDB replica sets (Docker)
- PostgreSQL management: Run and configure PostgreSQL instances (Docker)
- Hosts file management: Manage
/etc/hostsentries for local development - Process management: Start background apps with PID/log tracking; find child PIDs
- Run env: Run commands with variables from
.env*files (discovery, multi-select, or explicit paths) - Security: Generate production-grade passwords and JWT secrets
npm install softkave-forerunner
# or
npx softkave-forerunnersoftkave-forerunner <command> [subcommand] [options]import {generateCA, initMongo} from 'softkave-forerunner';Detailed guides are in docs/:
| Topic | Link |
|---|---|
| Installation | docs/installation.md |
| Usage (CLI & SDK) | docs/usage.md |
| Commands | docs/commands/ |
| Configuration files | docs/configuration/ |
| SDK reference | docs/sdk/ |
| Examples | docs/examples.md |
certs — Certificate management
ca— Generate Certificate Authoritycert— Generate signed certificatessh-key— Generate an SSH keypairkeyfile— Generate a keyfile (e.g. MongoDB keyFile)
mongo — MongoDB management
scaffold-config— Generate MongoDB configuration filevalidate-config— Validate MongoDB configuration filesetup-replica-set— Setup replica set (deprecated)generate-certs— Generate MongoDB certificatesstart— Start MongoDB instancesstop— Stop MongoDB instancessetup-users— Setup MongoDB usersprint-uri— Print MongoDB connection URIreplica-set-status— Print replica set statusrestart— Rolling restart of replica set members
postgres — PostgreSQL management
scaffold-config— Generate PostgreSQL configuration filevalidate-config— Validate PostgreSQL configuration filegenerate-certs— Generate PostgreSQL certificatesstart— Start PostgreSQL instancestop— Stop PostgreSQL instancesetup-users— Setup PostgreSQL userssetup-dbs— Setup PostgreSQL databasesprint-uri— Print PostgreSQL connection URI
etc-hosts — Hosts file management
set— Set host entryremove— Remove host entrylist— List host entriesbackup— Backup hosts filerestore— Restore hosts file
pm — Process management
start— Start a background process with PID and log trackingchildren-pids— Find all child PIDs of a parent PID
run-env — Run with env files
run-env— Run a command with selected or explicit.env*files
security — Security utilities
password— Generate production-grade password(s)jwt-secret— Generate production-grade JWT secret(s)
See notes/releases/v0.x.x.md for version history and migration notes.
softkave-forerunner <command> --help
softkave-forerunner <command> <subcommand> --help