---
id: "ftp_command"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["internet"]
langs: ["common"]
quality: 80
url: "https://registry.apicrafter.io/datatype/ftp_command"
---

# FTP command (`ftp_command`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Command code that an FTP client sends on the control connection (RFC 959), such as USER, RETR or STOR. FTP server logs store it. The standard commands have three or four letters, and the pattern accepts that form in capital letters, so other short capital words also match.

- Personal data (PII): no
- Categories: Internet (internet)
- Countries: global
- Languages: Common to most languages (common)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^[A-Z]{3,4}$
```

## Examples

- `USER` — Identify the user
- `RETR` — Retrieve a copy of a file
- `STOR` — Store a file on the server
- `CWD` — Change the working directory
- `DOWNLOAD` (invalid example) — Not a command code

## Translations

- ru: Команда FTP

## Sources

- doc: <https://www.rfc-editor.org/rfc/rfc959>

## Quality

Score 80/100. Missing: mapping (Wikidata, Schema.org, ...), detector coverage.

JSON: <https://registry.apicrafter.io/api/v1/datatypes/ftp_command.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/internet/ftp_command.yaml>
