Este contenido no está disponible en el idioma seleccionado.

13.5.12. Custom Environment Variables


Custom environment variables are user defined to use with applications.
Setting Custom Environment Variables

Set one of more environment variables for an application with the following command:

$ rhc env set Variable=Value Variable2=Value2 -a App_Namerhc env set Variable=Value Variable2=Value2 -a App_Namerhc env set Variable=Value Variable2=Value2 -a App_Namerhc env set Variable=Value Variable2=Value2 -a App_Namerhc env set Variable=Value Variable2=Value2 -a App_Namerhc env set Variable=Value Variable2=Value2 -a App_Name
Copy to Clipboard Toggle word wrap
Add additional Variable=Value arguments separated by spaces to set multiple variables.

Viewing Custom Environment Variables

View the custom environment variables set for an application with the following command:

$ rhc env list -a App_Namerhc env list -a App_Name
Copy to Clipboard Toggle word wrap

Viewing the Value of a Custom Environment Variable

Display the value of one or more custom environment variables with the following command:

$ rhc env show Variable Variable2 -a App_Namerhc env show Variable Variable2 -a App_Namerhc env show Variable Variable2 -a App_Namerhc env show Variable Variable2 -a App_Name
Copy to Clipboard Toggle word wrap

Removing Custom Environment Variables

Remove a custom environment variable with the following command:

$ rhc env unset Variable -a App_Namerhc env unset Variable -a App_Namerhc env unset Variable -a App_Namerhc env unset Variable -a App_Name
Copy to Clipboard Toggle word wrap

Volver arriba
Red Hat logoGithubredditYoutubeTwitter

Aprender

Pruebe, compre y venda

Comunidades

Acerca de la documentación de Red Hat

Ayudamos a los usuarios de Red Hat a innovar y alcanzar sus objetivos con nuestros productos y servicios con contenido en el que pueden confiar. Explore nuestras recientes actualizaciones.

Hacer que el código abierto sea más inclusivo

Red Hat se compromete a reemplazar el lenguaje problemático en nuestro código, documentación y propiedades web. Para más detalles, consulte el Blog de Red Hat.

Acerca de Red Hat

Ofrecemos soluciones reforzadas que facilitan a las empresas trabajar en plataformas y entornos, desde el centro de datos central hasta el perímetro de la red.

Theme

© 2025 Red Hat