---
title: "Run backend command"
method: POST
path: "/backend/command"
---

# Run backend command

`POST /backend/command`

Invokes a backend-specific management command against an optional remote.

## Query parameters

- `command` string
- `fs` string
- `arg` string[]
- `opt` string
- `_group` string
- `_async` boolean

## Headers

- `Prefer` 'respond-async'

## Request body

- BackendCommandRequest
  - `command` string — Backend-specific command to invoke.
  - `fs` string — Remote name or path the backend command should target.
  - `arg` string[] — Optional positional arguments for the backend command.
  - `opt` string — Backend command options encoded as a JSON string.
  - `_group` string — Assign the request to a custom stats group.
  - `_async` boolean — Run the command asynchronously. Returns a job id immediately.

## Response `200`

Backend command output and any additional returned fields.

- object
  - `result` unknown

## Other responses

- `202` — Request accepted for async processing. Poll /job/status with the returned jobid.
- `4XX` — Any error response (HTTP 4xx/5xx)
- `5XX` — Any error response (HTTP 4xx/5xx)

## Changes

> 21 revisions in range; 18 could not be searched.

- **2025-12-06** `30e239e76ba1` — 8 breaking, 1 warning
  - removed the request body
  - the `query` request parameter `command` became required
  - the response property `input` became nullable for the status `4XX`
  - the response property `input` became nullable for the status `5XX`
  - …5 more

[Change history](https://skmtc.dev/rclone/apis/rclone-rc-api/changes/backend/command/post.md)

---

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