.env Editor
Edit dotenv files as a table while keeping comments, order and quoting; export .env.example
What can this tool do?
Parsing and saving run locally in Rust; files never leave your computer.
envdotenvenvironmentvariablessecretsconfig环境变量配置
Before you begin
Install through the in-app tool market. Plugins update independently; review their permissions before installing.
This website helps you discover tools and read their guides. Processing takes place in the ToolForge desktop app.
Usage and limits
- Parsing and saving run locally in Rust; files never leave your computer.
- Comments, blank lines and unrecognizable lines are preserved as-is; variable order never changes and keys, values and inline comments are editable.
- Values are shown escaped (\n, \", \\) following the rules used by most dotenv loaders.
- The leading switch toggles the export prefix; saving rejects duplicate or invalid keys.
- Exporting generates a matching .example file (.env → .env.example) with values cleared and comments kept.
- The Compare tab takes 2–8 .env files; the first (starred) is the baseline. Keys in the baseline but not in a file are missing, the reverse are extra; an empty string value is empty; a key repeated in one file is duplicate (its last value is compared); different values are marked as differing. No values are ever shown.
- Merging inserts the baseline keys a target lacks right after the preceding baseline key, together with the comments directly above them, keeping export, quoting and inline comments. Values stay empty unless you copy them. You preview before writing, and existing target lines are never changed.
- Values are compared literally; $VAR or $(command) are never shell-expanded.
Need installation help?
Know what a tool can access.
These capabilities come from the tool manifest. Host authorization and the current operation still determine actual access.
Command line & AI agents
Only the functions explicitly listed below are exposed to their declared channels. Availability also depends on the app version, tool settings and user authorization.
compare · Compare .env files and report missing, extra, empty, duplicate and differing keys
CLI / AI Agent · Read-only
Capabilities: fs:user-selected
| Parameter | Type | Description |
|---|---|---|
paths * | array | Two to eight .env files |
tfp-env-editor compare .env .env.examplemerge_preview · Preview a target .env file with the keys it lacks from a reference file
CLI / AI Agent · Read-only
Capabilities: fs:user-selected
| Parameter | Type | Description |
|---|---|---|
base * | string | Reference .env file whose keys are copied |
target * | string | .env file that receives the missing keys |
fill | boolean | Copy the reference values instead of leaving them empty |
tfp-env-editor merge_preview .env.example .envmerge · Add the keys a target .env file lacks from a reference file and save it
CLI / AI Agent · Writes data
Capabilities: fs:user-selected
| Parameter | Type | Description |
|---|---|---|
base * | string | Reference .env file whose keys are copied |
target * | string | .env file that receives the missing keys |
fill | boolean | Copy the reference values instead of leaving them empty |
tfp-env-editor merge .env.example .env --fill