www/apps/cloud/app/environments/page.mdx
import { getOsShortcut, Kbd, Tabs, TabsList, TabsTrigger, TabsContent, TabsContentWrapper } from "docs-ui"
export const metadata = {
title: Environments,
}
In this guide, you'll learn about environments in Cloud, how to create and manage them, and how to use preview environments.
A Cloud project can have multiple environments, each representing a different stage of your application. For example, you can have a Production environment for your live application, and a Staging environment for testing new features.
Each environment has its own deployed Medusa backend, admin dashboard, and storefront. It also has its own resources, such as a database and server instance.
By default, a project has at least a Production environment, and you can create custom environments based on your development needs.
Environments are useful to test changes in production-like conditions before actually pushing them to production. You can test out new features, bug fixes, and integrations without affecting the live application.
There are two types of environments:
To view a project's environments:
<Note title="Tip">You can also navigate to a project's overview page from the command palette. Press <Kbd>{getOsShortcut()}</Kbd> + <Kbd>K</Kbd>, select Project Overview, then choose a project.
</Note> <Tabs defaultValue="classic"> <TabsList> <TabsTrigger value="classic">Classic Navigation</TabsTrigger> <TabsTrigger value="global-sidebar">Global Sidebar</TabsTrigger> </TabsList> <TabsContentWrapper> <TabsContent value="classic">1. Make sure you're viewing the [correct organization's dashboard in Cloud](../organizations/page.mdx#switch-organization).
2. Click on the project card in the organization's dashboard.
</TabsContent>
<TabsContent value="global-sidebar">
1. Make sure you're viewing the [correct organization's dashboard in Cloud](../organizations/page.mdx#switch-organization).
2. Click on the project name in the sidebar.
3. Click on **Overview** in the sidebar under the project.
</TabsContent>
In the project's dashboard, you'll find a card for every long-lived environment in your project. For example, you may have Production and Staging cards.
You'll also find a table listing all the preview environments created for the project below the long-lived environment cards.