@@ -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
296304coolify app env list < uuid>
297305coolify app env create < uuid> --key API_KEY --value secret123
306+
307+ # Sync from .env file (updates existing, creates new, keeps others unchanged)
298308coolify 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