Skip to content

feat(env): allow updating vars by UUID or key identifier#65

Merged
andrasbacsai merged 3 commits intov4.xfrom
62-app-env-update
Mar 23, 2026
Merged

feat(env): allow updating vars by UUID or key identifier#65
andrasbacsai merged 3 commits intov4.xfrom
62-app-env-update

Conversation

@andrasbacsai
Copy link
Copy Markdown
Member

Summary

  • Change env update command signature to accept <env_uuid_or_key> as a positional argument instead of requiring --key flag
  • Applied to all resource types: applications, databases, and services
  • Users can now identify env vars by UUID (preferred) or key name when updating
  • Make --key optional, only used for renaming variables
  • Make --value explicitly required
  • Update documentation in README.md and llms.txt

Breaking Changes

The coolify app/database/service env update commands have changed their interface:

Before:

coolify app env update <app_uuid> --key <key_name> --value <new_value>

After:

coolify app env update <app_uuid> <env_uuid_or_key> --value <new_value>
  • The env identifier (UUID or key name) is now a required positional argument
  • The --key flag is now optional and only used when renaming the variable
  • The --value flag is now explicitly marked as required

Same changes apply to:

  • coolify database env update
  • coolify service env update

Context

Fixes #62 where users couldn't update environment variables using the UUID returned by coolify app env get. The new interface supports both UUID (recommended) and key identifiers, making it more intuitive and compatible with scripting workflows.


Fixes #62

Add support for identifying environment variables by UUID or key name in
update commands, eliminating the requirement to use --key for lookups.
Commands now accept <env_uuid_or_key> as a positional argument to identify
the variable, with --key becoming optional for renaming only. Applied to
app, database, and service env update commands and updated documentation.
Reorganize parameter ordering for consistency across app, database, and
service env update commands. Move string parameters (--key, --value) after
boolean parameters. Simplify --key parameter description.
@andrasbacsai andrasbacsai merged commit e49daee into v4.x Mar 23, 2026
5 checks passed
@andrasbacsai andrasbacsai deleted the 62-app-env-update branch March 23, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

coolify app env update and coolify app env create fail

1 participant