---
metadata:
  - name: generator
    content: Diplodoc Platform v5.57.3
alternate:
  - https://sourcecraft.dev/portal/docs/en/sourcecraft/operations/repo-download-archive.md
  - https://sourcecraft.dev/portal/docs/ru/sourcecraft/operations/repo-download-archive.md
  - href: en/sourcecraft/operations/repo-download-archive.md
    type: text/markdown
    title: Markdown version
  - href: ../../llms.txt
    type: text/markdown
    title: llms.txt
title: How to download a SourceCraft repository archive
description: Follow this guide to download SourceCraft repository contents as an archive.
---
> **Documentation Index:** Fetch the complete configuration index at https://sourcecraft.dev/portal/docs/en/llms.txt


# Downloading an archive containing a SourceCraft repository

You can download the contents of a specific repository branch without the commit history as an archive using the SourceCraft UI or via a direct link.

{% list tabs group=instructions %}

- SourceCraft UI {#src}

  1. Open the SourceCraft [home page](https://sourcecraft.dev).
  1. On the ![image](../../_assets/console-icons/house.svg) **Home** tab, under ![image](../../_assets/console-icons/layout-tabs.svg) **Your craftspace**, navigate to ![image](../../_assets/console-icons/archive.svg) **Repositories** and select your repository.

      Alternatively, you can open any public repository.

  1. Below the repository name, select the branch you want to download.
  1. In the top-right corner, click ![image](../../_assets/console-icons/chevron-down-wide.svg) **Clone**.
  1. In the window that opens, click ![image](../../_assets/console-icons/file-zipper.svg) **Download ZIP**.

      The archive with the branch contents will download to your computer.

- Direct link {#link}

  {% note warning %}

  You can only download [public repositories](https://sourcecraft.dev/portal/docs/en/sourcecraft/concepts/index.md#repos) via a direct link.

  {% endnote %}

  To download contents of a public repository, use these direct links:
  * `.zip` format: `https://codeload.sourcecraft.tech/<organization_slug>/<repository_slug>/zipball/refs/heads/<branch_name>`.
  * `.tar.gz` format: `https://codeload.sourcecraft.tech/<organization_slug>/<repository_slug>/tarball/refs/heads/<branch_name>`.

  To download an archive, e.g., using `wget`, run one of the following commands:
  * `.zip` archive:

    ```bash
    wget \
      https://codeload.sourcecraft.tech/<organization_slug>/<repository_slug>/zipball/refs/heads/<branch_name> \
      --output-document=<file_name>.zip
    ```

  * `.tar.gz` archive:

    ```bash
    wget \
      https://codeload.sourcecraft.tech/<organization_slug>/<repository_slug>/tarball/refs/heads/<branch_name> \
      --output-document=<file_name>.tar.gz
    ```

{% endlist %}

### Useful links {#see-also}

* [Cloning a repository SourceCraft](https://sourcecraft.dev/portal/docs/en/sourcecraft/operations/repo-clone.md)
* [Downloading, copying, or getting a link to a raw file in SourceCraft](https://sourcecraft.dev/portal/docs/en/sourcecraft/operations/raw-content.md)
* [Working with releases in SourceCraft](https://sourcecraft.dev/portal/docs/en/sourcecraft/operations/releases-work.md)
