---
title: "Gets PHP command line configuration"
method: GET
path: "/api/server/php-cli"
tags: ["Server Configuration"]
---

# Gets PHP command line configuration

`GET /api/server/php-cli`

## Response `200`

Version of the current PHP command line binary. The problem key returns the first found server issue or empty if none.

- object
  - `version` string
  - `version_id` integer — PHP version ID
  - `problem` ApiProblem
    - `title` string
    - `type` string
    - `status` integer
    - `detail` string

## Other responses

- `503` — If the command line binary cannot be found.

---

[API](https://skmtc.net/contao/apis/contao-manager-api.md) · [All operations](https://skmtc.net/contao/apis/contao-manager-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/contao/contao-manager-api/revisions/074d8046de13/schema)
