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

# Getting Started

> Link workspaces and configure review gates before you deploy configuration.

Before you can deploy configuration between workspaces, link the workspaces involved. You can also require approvals or checks on what a workspace receives.

Linking a workspace turns on **Deployments** (**Test & Release** in the classic layout) for both workspaces in **Settings → Capabilities**.

## Link workspaces

A deployment is only allowed while an active link exists from the source workspace to the receiving workspace. Manage links in **Settings → Workspace Links**.

### Link workspaces in your organization

Linking two workspaces in the same organization (for example, a staging workspace and a production workspace) requires that you be an admin or a manager on both workspaces.

**1. Open Workspace Links**

In either workspace, go to **Settings → Workspace Links** and select **Add connection**.

**2. Choose the direction and workspace**

In **Add workspace connection**, choose **Receive configuration in \[workspace]** or **Send configuration from \[workspace]**, select **Link a workspace in your org**, and pick the other workspace.

### Link workspaces in another organization

Workspaces in different organizations connect with a single-use invite code. The receiving workspace generates the code, and the sending workspace redeems it.

> [!NOTE]
>
> Serval connects your organizations before cross-organization links will work. If the sending workspace can't redeem the code (for example, because cross-organization links aren't enabled for the organizations, or the two organizations aren't connected), contact Serval to connect your organizations first.

**1. Generate a code (receiving workspace)**

An admin or manager of the receiving workspace opens **Settings → Workspace Links → Add connection** and, under **Receive configuration in \[workspace]**, selects **Generate invite code**, then **Generate code**. Copy the `svl_` code (it's shown only once) and share it with the sending workspace over a trusted channel. The code is single-use and expires.

**2. Redeem the code (sending workspace)**

An admin or manager of the sending workspace opens **Settings → Workspace Links → Add connection** and, under **Send configuration from \[workspace]**, selects **Redeem invite code**, pastes the code, selects **Look up** to confirm the receiving workspace, then selects **Link workspaces**.

Once linked, the sending workspace can deploy configuration into the receiving workspace, and the sending workspace's managers can view the receiving workspace's configuration to prepare deployments. Cross-organization deployments also require the receiving workspace to [require approval](#require-approval-for-deployments). Without an approval policy and an approver, these deployments are blocked.

### Revoke a link

To stop a workspace from sending configuration, select **Revoke**. Staged deployments that haven't been applied will fail, and you can link the workspaces again later. Revoking doesn't undo configuration that was already applied. Only manually created links can be revoked.

## Require approval for deployments

To require sign-off before a deployment is applied to a workspace, set an approval policy on the receiving workspace. A manager or admin of the receiving workspace can do this:

**1. Open the review settings**

In the receiving workspace, open **Deployment → Reviews** and select **Review settings**. In the classic layout, open **Test & Release → Reviews** and select **Approval settings**.

**2. Set the incoming-deployments policy**

Select **Incoming deployments**, turn on **Require approval for incoming deployments**, choose an approval procedure with at least one approver, then select **Save changes**.
In the classic layout, these are **Incoming promotions** and **Require approval for incoming promotions**.

This approval is configured independently from Catalyst review approvals.

## Require checks on deployments

You can require a workflow or an evaluation suite to pass before a deployment is applied. Configure checks on the receiving workspace's **Reviews** page. Managing the check policy requires the Manager role.

**1. Open the check settings**

In the receiving workspace, open **Deployment → Reviews → Review settings → Deployment checks**. In the classic layout, open **Test & Release → Reviews → Promotion checks**.

**2. Select the checks**

Select the checkbox next to each workflow or evaluation suite that must pass, then choose **Save checks**. For an evaluation suite, set the **Minimum pass percentage** before saving: the share of its evaluations that must meet their expected result. Missing scores count against the total, and execution errors always fail the check.

**3. Require the checks to block**

Turn on **Require deployment checks** (**Require promotion checks** in the classic layout) to start checks automatically for new deployment reviews and block the deployment until required checks pass.

Turning this off keeps your selected checks saved, but stops automatic check runs for new reviews and stops check failures from blocking deployments. It doesn't cancel checks that are already running. You can still start or rerun checks manually from a review.

To keep automatic runs and make only one check non-blocking, leave this setting on and mark that check optional. Optional checks still run; their failures don't block the deployment, while other required checks must pass.

## Turn on branching

To let members create branches of a workspace, turn on branching for that workspace. Branching is off by default.

**1. Open Capabilities**

In the workspace, go to **Settings → Capabilities** and find **Deployments**.

**2. Turn on Branching**

Under **Deployments**, turn on **Branching**. **Deployments** must be on first.

Turning branching off removes the workspace's branch list and the option to create new branches. Existing branches stay available from the workspace switcher. Turning off **Deployments** also turns off **Branching**. For how to create and use a branch, see [Work in a branch](https://docs.serval.com/sections/documentation/platform/branching.md).

## Related

* [Deployments overview](https://docs.serval.com/sections/documentation/platform/deployments.md)
* [Deploy changes](https://docs.serval.com/sections/documentation/platform/test-and-release.md)
* [Work in a branch](https://docs.serval.com/sections/documentation/platform/branching.md)
* [Changes and reviews](https://docs.serval.com/sections/documentation/catalyst/changes-and-reviews.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.