Skip to content

Commit aa1bda4

Browse files
authored
Merge pull request #32 from coollabsio/andrasbacsai/env-sync-analysis
Add flags to env sync command
2 parents 1a6fa9e + 69f2a7a commit aa1bda4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ Commands can use `server` or `servers` interchangeably.
120120
- `coolify app env delete <app_uuid> <env_uuid>` - Delete an environment variable
121121
- `coolify app env sync <app_uuid>` - Sync environment variables from a .env file
122122
- `--file <path>` - Path to .env file (required)
123+
- `--build-time` - Make all variables available at build time
124+
- `--preview` - Make all variables available in preview deployments
125+
- `--is-literal` - Treat all values as literal (don't interpolate variables)
126+
- **Behavior**: Updates existing variables, creates missing ones. Does NOT delete variables not in the file.
123127

124128
### Databases
125129
- `coolify database list` - List all databases
@@ -190,6 +194,10 @@ Commands can use `server` or `servers` interchangeably.
190194
- `coolify service env delete <service_uuid> <env_uuid>` - Delete an environment variable
191195
- `coolify service env sync <service_uuid>` - Sync environment variables from a .env file
192196
- `--file <path>` - Path to .env file (required)
197+
- `--build-time` - Make all variables available at build time
198+
- `--preview` - Make all variables available in preview deployments
199+
- `--is-literal` - Treat all values as literal (don't interpolate variables)
200+
- **Behavior**: Updates existing variables, creates missing ones. Does NOT delete variables not in the file.
193201

194202
### Deployments
195203
- `coolify deploy uuid <uuid>` - Deploy a resource by UUID
@@ -295,7 +303,10 @@ coolify app logs <uuid>
295303
# Environment variables
296304
coolify app env list <uuid>
297305
coolify app env create <uuid> --key API_KEY --value secret123
306+
307+
# Sync from .env file (updates existing, creates new, keeps others unchanged)
298308
coolify app env sync <uuid> --file .env
309+
coolify app env sync <uuid> --file .env.production --build-time --preview
299310
```
300311

301312
### Database Management

0 commit comments

Comments
 (0)