Push a local .env back to OneGuard
oneguard_env_pushUpload .env file variables to the linked secret, replacing its current value. Confirm variable names with the user before pushing.
Instructions
Uploads the variables in a directory's .env file into the secret that directory is linked to, REPLACING what the secret held. The reverse of oneguard_env_sync. Confirm with the user first, and tell them which variable names are about to be uploaded. To add a single generated value without touching the rest, use oneguard_secrets_generate instead.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_dir": "<project_dir>"
},
"name": "oneguard_env_push"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Env file path relative to project_dir. Defaults to ".env". | |
| project_dir | Yes | Absolute path to the developer's project directory. This is where the .oneguard link file and the .env file live. Must be absolute — ask the user if you do not know it. |