CLI Reference
This page documents the stable v2.1.2 CLI baseline. The repositorymain branch is a 2.1.3 development channel and can contain extra commands that are not part of this stable reference.
Grammar
server ... / client ... top-level namespace.
Interactive keys
frpctl history is not written to disk.
Client selector
The canonical selector is CLIENT ID: immutable short machine identity. Changing label, note, tags, or hostname never changes CLIENT ID.show clientsprints CLIENT ID first.- Tab completes CLIENT ID.
- A unique label/hostname can be typed manually.
- Ambiguous selectors fail closed.
user@host:portis not a client selector.
Show
status and version remain compatibility shortcuts for the show form.
Set
Server:apply.
Unset
unset removes metadata; it does not release public ports or change identity.
Create / add
create zero-touch is the recommended everyday onboarding path.
Enable / disable / apply / discard
apply does not release server ports.
Revoke / release / restore
delete client command.
Update
show upstream is informational.
Other
Stable enrollment states
show enrollments can represent enrollment records in normalized lifecycle states such as:
show, Tab, or help output.
The 2.1.3 development tree adds explicit terminal enrollment purge/retention commands and bootstrap-hostname controls. Do not assume those commands exist on a stable v2.1.2 server.