# Step 2: Clone repository

This page describes the second step to deploy Cortex Framework Data Foundation,
the core of Cortex Framework. In this step, you clone the
[Cortex Framework Data Foundation](https://github.com/GoogleCloudPlatform/cortex-data-foundation)
repository.

> [!NOTE]
> **Note:** The steps outlined on this page are specifically designed for deploying Cortex Framework Data Foundation from the [official GitHub repository](https://github.com/GoogleCloudPlatform/cortex-data-foundation)

Clone the Cortex Framework Data Foundation repository with the following
commands, using [Cloud Shell](https://shell.cloud.google.com/?fromcloudshell=true&show=ide,terminal).
If you are using your terminal, install the `gcloud sdk` (which is already
installed in Cloud Shell).

1. Clone the [repository](https://github.com/GoogleCloudPlatform/cortex-data-foundation)
   using the following command:

       git clone https://github.com/GoogleCloudPlatform/cortex-data-foundation

2. Navigate into the downloaded repository with the following command:

       cd cortex-data-foundation

   If you have already cloned this repository before, pull the latest changes
   with the following command:

       git pull

## Next steps

After you complete this step, move on to the following deployment steps:

1. [Establish workloads](https://docs.cloud.google.com/cortex/docs/v6/deployment-step-one).
2. [Clone repository](https://docs.cloud.google.com/cortex/docs/v6/deployment-step-two) (this page).
3. [Determine integration mechanism](https://docs.cloud.google.com/cortex/docs/v6/deployment-step-three).
4. [Set up components](https://docs.cloud.google.com/cortex/docs/v6/deployment-step-four).
5. [Configure deployment](https://docs.cloud.google.com/cortex/docs/v6/deployment-step-five).
6. [Execute deployment](https://docs.cloud.google.com/cortex/docs/v6/deployment-step-six).