Skip to content

Commit

Permalink
Adjust CLI help menu for new environment variable behavior with secret
Browse files Browse the repository at this point in the history
  • Loading branch information
Leda06 committed Sep 24, 2024
1 parent 801dc60 commit c8bff05
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions docs/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ See examples of koyeb service create --help
--docker-entrypoint strings Docker entrypoint. To provide multiple arguments, use the --docker-entrypoint flag multiple times.
--docker-private-registry-secret string Docker private registry secret
--env strings Update service environment variables using the format KEY=VALUE, for example --env FOO=bar
To use the value of a secret as an environment variable, specify the secret name preceded by @, for example --env FOO=@bar
To use the value of a secret as an environment variable, use the following syntax:
--env FOO={{secret.bar}}
To delete an environment variable, prefix its name with '!', for example --env '!FOO'
--git string Git repository
Expand Down Expand Up @@ -577,7 +578,8 @@ koyeb deploy <path> <app>/<service> [flags]
--deployment-strategy STRATEGY Deployment strategy, either "rolling" (default), "canary", "blue-green" or "immediate".
--env strings Update service environment variables using the format KEY=VALUE, for example --env FOO=bar
To use the value of a secret as an environment variable, specify the secret name preceded by @, for example --env FOO=@bar
To use the value of a secret as an environment variable, use the following syntax:
--env FOO={{secret.bar}}
To delete an environment variable, prefix its name with '!', for example --env '!FOO'
-h, --help help for deploy
Expand Down Expand Up @@ -1382,7 +1384,8 @@ $> koyeb service create myservice --app myapp --docker nginx --port 80:tcp
--docker-entrypoint strings Docker entrypoint. To provide multiple arguments, use the --docker-entrypoint flag multiple times.
--docker-private-registry-secret string Docker private registry secret
--env strings Update service environment variables using the format KEY=VALUE, for example --env FOO=bar
To use the value of a secret as an environment variable, specify the secret name preceded by @, for example --env FOO=@bar
To use the value of a secret as an environment variable, use the following syntax:
--env FOO={{secret.bar}}
To delete an environment variable, prefix its name with '!', for example --env '!FOO'
--git string Git repository
Expand Down Expand Up @@ -1802,7 +1805,8 @@ $> koyeb service update myapp/myservice --port 80:tcp --route '!/'
--docker-entrypoint strings Docker entrypoint. To provide multiple arguments, use the --docker-entrypoint flag multiple times.
--docker-private-registry-secret string Docker private registry secret
--env strings Update service environment variables using the format KEY=VALUE, for example --env FOO=bar
To use the value of a secret as an environment variable, specify the secret name preceded by @, for example --env FOO=@bar
To use the value of a secret as an environment variable, use the following syntax:
--env FOO={{secret.bar}}
To delete an environment variable, prefix its name with '!', for example --env '!FOO'
--git string Git repository
Expand Down
2 changes: 1 addition & 1 deletion pkg/koyeb/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ func (h *ServiceHandler) addServiceDefinitionFlagsForAllSources(flags *pflag.Fla
"env",
[]string{},
"Update service environment variables using the format KEY=VALUE, for example --env FOO=bar\n"+
"To use the value of a secret as an environment variable, specify the secret name preceded by @, for example --env FOO=@bar\n"+
"To use the value of a secret as an environment variable, use the following syntax: --env FOO={{secret.bar}}\n"+
"To delete an environment variable, prefix its name with '!', for example --env '!FOO'\n",
)
flags.String("instance-type", "nano", "Instance type")
Expand Down

0 comments on commit c8bff05

Please sign in to comment.