---
title: "apk config"
method: GET
path: "/install/repositories/{user_id}/{repo}/config_file.alpine"
tags: ["install"]
---

# apk config

`GET /install/repositories/{user_id}/{repo}/config_file.alpine`

Return an Alpine `apk` repository line for this repository (with an embedded read token), to append to `/etc/apk/repositories`; the server sends it as `Content-Type: application/x-sh`. The alpine setup script's apk counterpart to `config_file.list`. Use `os=alpine` and `dist=v<major>.<minor>`.

## Path parameters

- `user_id` string, required
- `repo` string, required

## Query parameters

- `dist` string, required
- `name` string, required
- `os` string, required

## Response `200`

An apk repository line.

## Changes

- **2026-06-15** `40c6159e89e4` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/cstrahan/apis/packagecloud-api/changes/install/repositories/:user_id/:repo/config_file.alpine/get.md)

---

[API](https://skmtc.dev/cstrahan/apis/packagecloud-api.md) · [All operations](https://skmtc.dev/cstrahan/apis/packagecloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cstrahan/apis/packagecloud-api/revisions/9744ac4cffc2?raw)
