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

# Execute a command

`POST /process/execute`

## Request

- The document declares no server URL.
- Auth: none declared

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/daemon-api.md) - [All operations](https://skmtc.dev/tencentblueking/apis/daemon-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tencentblueking/apis/daemon-api/revisions/b7207bf13d2c?raw)
