---
metadata:
  - name: generator
    content: Diplodoc Platform v5.63.0
alternate:
  - https://vibe.sourcecraft.dev/portal/docs/en/sourcecraft/operations/raw-content.md
  - https://vibe.sourcecraft.dev/portal/docs/ru/sourcecraft/operations/raw-content.md
  - href: https://vibe.sourcecraft.dev/portal/docs/en/sourcecraft/operations/raw-content.md
    type: text/markdown
    title: Markdown version
  - href: https://vibe.sourcecraft.dev/portal/docs/en/llms.txt
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://vibe.sourcecraft.dev/portal/docs/en/llms.txt

# Downloading, copying, or getting a link to a raw file in SourceCraft

<!-- source: en/_includes/sourcecraft/raw-content-intro.md -->
In a SourceCraft [repository](https://vibe.sourcecraft.dev/portal/docs/en/sourcecraft/concepts/index.md#repos), raw files are available via [direct links](https://vibe.sourcecraft.dev/portal/docs/en/sourcecraft/operations/raw-content.md#raw). 

The SourceCraft UI also supports [copying](https://vibe.sourcecraft.dev/portal/docs/en/sourcecraft/operations/raw-content.md#copy) and [downloading](https://vibe.sourcecraft.dev/portal/docs/en/sourcecraft/operations/raw-content.md#download) raw files without having to [clone](https://vibe.sourcecraft.dev/portal/docs/en/sourcecraft/operations/repo-clone.md) the repository.
<!-- endsource: en/_includes/sourcecraft/raw-content-intro.md -->

## Getting a link to the original raw file from a repository {#raw}

_Raw files_ are repository source files without HTML rendering or the SourceCraft interface, available at the following links:
* For public repositories: `https://raw.sourcecraft.tech/raw/<organization_slug>/<repository_slug>/<commit_hash>/<file_name>`
* For private and internal repositories: `https://raw.sourcecraft.tech/raw/<organization_slug>/<repository_slug>/<commit_hash>/<file_name>?token=<short_lived_token>`

Links to raw files are convenient to use in automations, e.g., to download and run or simply download a single file without having to clone the entire repository:

```bash
# Downloading and running a script directly
curl -s https://raw.sourcecraft.tech/.../install.sh | bash

# Or downloading a file
wget https://raw.sourcecraft.tech/.../config.yaml
```

You can also use a temporary link to raw files to share a file from a private or internal repository with a user who does not have access to that repository.

To get a link to a raw file:
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**.
1. Select a repository.
1. Below the repository name, select a branch.
1. Open the file you want to get the link to.
1. In the top-right corner, click ![image](../../_assets/sourcecraft/raw.svg)</svg>.

    The raw file link will open in a new window.

    {% note warning %}

    Links to files in private and internal repositories are temporary.

    {% endnote %}

## Copying the contents of a file from a repository {#copy}

The SourceCraft interface allows you to copy source files without the need to [clone](https://vibe.sourcecraft.dev/portal/docs/en/sourcecraft/operations/repo-clone.md) the entire repository.

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**.
1. Select a repository.
1. Below the repository name, select a branch.
1. Open the file whose contents you want to copy.
1. In the top-right corner, click ![image](../../_assets/console-icons/copy.svg).

   The file contents will be copied to the clipboard.

## Downloading a file from a repository {#download}

The SourceCraft interface allows you to download source files without the need to [clone](https://vibe.sourcecraft.dev/portal/docs/en/sourcecraft/operations/repo-clone.md) the entire repository.

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**.
1. Select a repository.
1. Below the repository name, select a branch.
1. Open the file you want to download.
1. In the top-right corner, click ![image](../../_assets/console-icons/arrow-down-to-square.svg).

<!-- source: en/_includes/sourcecraft/repo-download-tip.md -->
{% note tip %}

You can also [download](https://vibe.sourcecraft.dev/portal/docs/en/sourcecraft/operations/repo-download-archive.md) the contents of a specific repository branch without the commit history as an archive.

{% endnote %}
<!-- endsource: en/_includes/sourcecraft/repo-download-tip.md -->

#### Useful links {#see-also}

* [Adding a file or directory to a repository from the SourceCraft interface](https://vibe.sourcecraft.dev/portal/docs/en/sourcecraft/operations/add-file-repo.md)
* [Deleting, renaming, or moving a file or folder in a SourceCraft repository with Git](https://vibe.sourcecraft.dev/portal/docs/en/sourcecraft/operations/file-management.md)
* [Downloading an archive containing a SourceCraft repository](https://vibe.sourcecraft.dev/portal/docs/en/sourcecraft/operations/repo-download-archive.md)
* [Editing code in SourceCraft Code Assistant](https://vibe.sourcecraft.dev/portal/docs/en/sourcecraft/operations/code-edit.md)
