---
title: "Execute a command"
method: POST
path: "/process/execute"
tags: ["process"]
---

# Execute a command

`POST /process/execute`

Execute a shell command and return the output and exit code

## Request body

- PkgServerProcessExecuteRequest
  - `command` string, required
  - `cwd` string — Current working directory
  - `timeout` integer

## Response `200`

OK

- PkgServerProcessExecuteResponse
  - `exitCode` integer
  - `output` string

---

[API](https://skmtc.dev/tencentblueking/apis/untitled-api.md) · [All operations](https://skmtc.dev/tencentblueking/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tencentblueking/untitled-api/revisions/a12b0f392336/schema)
