linux_env_variable_manager
Parse, audit, and convert .env files into 9 deployment formats. Scans for leaked credentials and invalid keys without writing files or contacting external services.
Instructions
Linux Env Variable Manager. Parse, audit, and format-convert a .env file (the dotenv "KEY=value" plain-text envelope) entirely as a stateless text transform. It never reads, writes, or mutates any file, environment, or host — it only transforms the text you pass in. The "operation" field selects the mode: "parse" turns .env body text into a structured variable list (with quote style, inline comment, and line number) plus lenient-parse warnings; "format" converts a variable list into one of 9 deployment formats; "audit" scans values for leaked credentials, weak passwords, duplicate or invalid keys, and boolean-as-string typos; "presets" returns ready-made example variable sets. Use this for .env conversion and secret auditing; use linux_bash_script_generator for full shell scripts and linux_systemd_unit_generator for unit files. Runs locally: read-only, non-destructive, offline, contacts no external service, and is rate-limited (anonymous 30/min, 200/hr, 1000/day).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | Mode. "parse" and "audit" read the "text" field; "format" reads the "input" object; "presets" ignores all other fields and returns the static preset list. | parse |
| text | No | parse/audit only. Raw .env file body ("KEY=value" lines, "#" comments, optional "export " prefix, single/double quotes, multi-line double-quoted values). | |
| input | No | format only. The variable list plus target format to render. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | Always true on a 2xx response. | |
| operation | No | The operation that was executed, echoed back. | |
| result | No | Operation-specific payload. "parse" returns variables (each key/value/quote/comment/lineNumber) and warnings[]; "format" returns output (the rendered snippet string) and warnings[]; "audit" returns findings[] (each key/severity/issue/suggestion); "presets" returns presets[] (each id/name/description/variables). |