Ce contenu n'est pas disponible dans la langue sélectionnée.

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

Retour au début
Red Hat logoGithubredditYoutubeTwitter

Apprendre

Essayez, achetez et vendez

Communautés

À propos de la documentation Red Hat

Nous aidons les utilisateurs de Red Hat à innover et à atteindre leurs objectifs grâce à nos produits et services avec un contenu auquel ils peuvent faire confiance. Découvrez nos récentes mises à jour.

Rendre l’open source plus inclusif

Red Hat s'engage à remplacer le langage problématique dans notre code, notre documentation et nos propriétés Web. Pour plus de détails, consultez le Blog Red Hat.

À propos de Red Hat

Nous proposons des solutions renforcées qui facilitent le travail des entreprises sur plusieurs plates-formes et environnements, du centre de données central à la périphérie du réseau.

Theme

© 2025 Red Hat