> ## Documentation Index
> Fetch the complete documentation index at: https://www.truefoundry.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Environments

> Create and manage custom environments like dev, staging, and production to organize your TrueFoundry workspaces.

As your organization uses the platform more and more, your Deployments dashboard will start filling up, especially if you are a Tenant Admin or a Cluster Admin. To navigate through all the applications, effectively filtering applications through meaningful tags and differentiating them based on relevant criteria becomes crucial.

This is where Environments come into the picture. You can create custom environments (e.g., development, staging, production) and tag workspaces accordingly. This automatically applies the environment tag to all applications within that workspace. This approach offers two key benefits:

* **Environment-based filtering**: You can easily filter applications by their assigned environment, focusing on specific sets like production services.
* **Descriptive environment names**: Environment names provide immediate context about an application's purpose and stage.

## Creating Environments

To create an environment in TrueFoundry, follow these steps:

<iframe provider="app.supademo.com" href="https://app.supademo.com/embed/Yyc_GoC0cqIqGre3xWn4m" typeofembed="iframe" height="475px" width="100%" src="https://app.supademo.com/embed/Yyc_GoC0cqIqGre3xWn4m" style={{ border: "none", display: "flex", margin: "auto" }} />

## How to tag a workspace with an environment

To tag a workspace with an environment, first, the Cluster where the workspace resides needs to have those environments added.

<iframe href="https://app.supademo.com/embed/_lxNNVAU_Po5eXicIXIHF" typeofembed="iframe" height="475px" width="100%" provider="app.supademo.com" src="https://app.supademo.com/embed/_lxNNVAU_Po5eXicIXIHF" style={{ border: "none", display: "flex", margin: "auto" }} />

For this, you will have to add all environments relevant to your cluster (one cluster can have multiple environments) in the cluster, using the instructions provided below.

<iframe href="https://app.supademo.com/embed/WqCoUneHoVpxGdDuIMBVQ" typeofembed="iframe" height="475px" width="100%" provider="app.supademo.com" src="https://app.supademo.com/embed/WqCoUneHoVpxGdDuIMBVQ" style={{ border: "none", display: "flex", margin: "auto" }} />

Now all your applications deployed within that specific workspace will have the environment of the workspace show up beside them.

<Frame caption="">
  <img src="https://mintcdn.com/truefoundry/s4Aj2_qGCrSP-zc8/images/82875a1e-98b10ee-Screenshot_2023-12-08_at_2.28.31_PM.png?fit=max&auto=format&n=s4Aj2_qGCrSP-zc8&q=85&s=3c563feff94684f57ce2990f0eb1e9b1" width="2940" height="1010" data-path="images/82875a1e-98b10ee-Screenshot_2023-12-08_at_2.28.31_PM.png" />
</Frame>

## Filtering Applications

You can use environments to filter your workspaces and applications. For example, you could filter your workspaces to only show those that are tagged with the development environment. You could also filter your applications to only show those that are tagged with the production environment.

<iframe href="https://app.supademo.com/embed/PnEx86Q7NUG8Qlz5EuaOh" typeofembed="iframe" height="475px" width="100%" provider="app.supademo.com" src="https://app.supademo.com/embed/PnEx86Q7NUG8Qlz5EuaOh" style={{ border: "none", display: "flex", margin: "auto" }} />
