Installation
Global Install
Section titled “Global Install”npm install -g envpkt# orpnpm add -g envpktOnce installed globally, the envpkt command is available everywhere:
envpkt --versionenvpkt --helpLocal Install
Section titled “Local Install”Add envpkt as a dev dependency to your project:
npm install -D envpkt# orpnpm add -D envpktThen run via npx or package scripts:
npx envpkt auditRun Without Installing
Section titled “Run Without Installing”npx envpkt env scannpx envpkt auditRequirements
Section titled “Requirements”envpkt needs Node 22.12 or later, and nothing else. It seals, unseals and makes keys in-process
with age-encryption, so you don’t install the
age CLI. The format is standard age: age -d decrypts what
envpkt seals, and envpkt unseals values sealed by age.
envpkt reads plain age key files, like the ones envpkt keygen and age-keygen write. A
passphrase-protected key file, an age plugin key or an SSH key fails with an error that names the
file. Run envpkt doctor to check that a config resolves and its key works.
Library Usage
Section titled “Library Usage”envpkt is also a TypeScript library. Import functions directly:
import { boot, loadConfig, computeAudit, scanFleet } from "envpkt"See the Library API reference for full documentation.