---
title: "List build commands"
method: GET
path: "/projects/{project_id}/build_commands"
tags: ["Build Commands"]
---

# List build commands

`GET /projects/{project_id}/build_commands`

## Request

- Base URL: `https://sg.deployhq.com`
- URL: `https://sg.deployhq.com/projects/{project_id}/build_commands`
- Auth: HTTP basic

Returns the project's build pipeline in execution order: the project's own build commands merged with any linked account-level (global) build commands. Each row carries a `source` of `project` or `global`; only `project` rows are actionable on the build-command member routes (show/update/destroy). Global rows carry the linked command's recipe plus the per-project position and effective enabled state.

## Path parameters

- `project_id` string, required

## Response `200`

Success

- object[]
  - `identifier` string
  - `source` string
  - `description` string
  - `command` string
  - `halt_on_error` boolean
  - `enabled` boolean
  - `position` integer
  - `watch_files` string

## Other responses

- `401`: You are not authorized to access this resource. You need to authenticate yourself first.
- `403`: You are not allowed to access this resource. You do not have the necessary permissions.
- `500`: An unexpected error occurred on the server. The server was unable to process the request.

---

[API](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation.md) · [All operations](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation/revisions/830264ae58be?raw)
