https://github.com/harborclient/plugin-dotenv
HarborClient plugin that links a `.env` file to an environment and keeps variables in sync.
https://github.com/harborclient/plugin-dotenv
Last synced: 9 days ago
JSON representation
HarborClient plugin that links a `.env` file to an environment and keeps variables in sync.
- Host: GitHub
- URL: https://github.com/harborclient/plugin-dotenv
- Owner: harborclient
- Created: 2026-06-25T13:38:03.000Z (11 days ago)
- Default Branch: main
- Last Pushed: 2026-06-25T16:52:01.000Z (11 days ago)
- Last Synced: 2026-06-25T17:05:49.806Z (11 days ago)
- Language: TypeScript
- Size: 195 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dotenv
HarborClient plugin that links a `.env` file to an environment and keeps variables in sync.
## Features
- Pick a `.env` file per collection from Collection Settings → Dotenv
- Create a new HarborClient environment from parsed `.env` values
- Keep the linked environment mirrored to the file with filesystem watch or polling fallback
- Configure key prefix filtering, prefix stripping, and key transforms in Settings → Dotenv Sync
## Permissions
- `ui` — settings panels and collection tab
- `filesystem:pick` — choose `.env` files
- `filesystem:read` — read linked files and watch for changes
- `storage` — persist links and settings
## Development
```bash
pnpm install
pnpm dev
```
Load the unpacked plugin folder in HarborClient Settings → Plugins, or start HarborClient with:
```bash
HARBOR_PLUGINS_DEV=/path/to/harborclient-plugin-dotenv pnpm dev
```
Build a distributable plugin package:
```bash
pnpm pack
```
## Sync behavior
1. Choose a `.env` file and click **Sync now**.
2. Enter a name for the new environment on first sync.
3. Enable **Keep in sync** to automatically push file changes into the linked environment.
When filesystem watch is unavailable, the plugin polls at the configured interval from Settings → Dotenv Sync.