CLI Reference
This reference lists the public Server and Agent commands. See the MCP tool reference for AI tool calls.
Enter sudo drlink for the role-aware REPL. Inside it, omit the sudo drlink prefix. From a Linux shell, prefix each command with sudo drlink. Angle-bracket values are placeholders; replace them before running. Bare named set opens Guided Create/Edit; complete forms apply directly after any required impact confirmation.
Command model
Server: inspect
Server: create and edit
Bulk enrollment accepts count/CSV, header label,ssh_user,note; up to 10 unused codes, 1 hour default TTL and 24 hour maximum. A blank SSH user is valid. Zero-Touch generates a compact one-time launcher using a trusted public hostname or verified numeric-IP/private-CA path; DNS is optional. An unmet prerequisite fails before ticket issuance.
Access policies and path scopes
File permissions need rule-bound paths. Omitted paths on edit preserve scopes; paths none clears them. Command execution has the OS account’s authority and is stronger than scoped file access. Review the initial OAuth owner’s generated mcp-owner-full-access rule: the first approved owner can receive all seven Managed Host capabilities; use a separately scoped identity for read-only users.
Server: remove resources
Inspect references before deletion. Group membership removal is metadata; bare unset managed-host retires trust and endpoint reservations. Resource deletion and policy reset may require y/N confirmation. unset mcp-tls removes the public route but retains certificate material; purge additionally removes retained secrets after interactive confirmation.
Policy tests
Use path for file tests. Groups expand into atomic combinations; aggregate ALLOW requires every member to allow. Policy simulation does not prove real traffic or tool execution.
Server: system, OAuth and certificates
system backup validate is read-only; restore replaces live state after validation/confirmation. Inspect the same Server’s OAuth page and client identity before approving its fresh pending ID. Certificate issue/import/renew can restart the frontend; use system certificate status as the public TLS status view. Product and engine updates are separate operations.
Agent Host commands
Remote Services belong to the owning Agent, use exactly one TCP or Fixed TCP Service Object, and receive a Server-allocated endpoint. UDP, Service Groups, CIDR/multiple targets and duplicate destination+service are rejected. Use diagnostics → synchronize → show remote-service when runtime verification is unavailable. Autostart disable affects next boot; resume starts and enables the Agent.
ConfigurationBundle
Start from a fresh role-specific export. There are no apiVersion/kind fields. Omitted resources remain; state: absent deletes explicitly. A stale sourceRevision is rejected on apply. Atomicity is per Server or Agent context, not distributed. Same-state reapply reports NO CHANGE when revision permits.
Policy defaults
Rules have no ordering or per-rule allow/deny field. An existing conflicting mode is rejected. Specify mode on the first Rule.
Scenario playbooks · Claude / ChatGPT connection
REPL utilities
Enrollment example behavior
SSH/RDP/Choose Remote Services enrollment automatically configures selected services. Inspect actual names using show remote-services; do not recreate them in a basic onboarding workflow. Blank username in SSH only retains SSH publication; blank ssh_user in bulk means management-only. The inventory above is syntax reference: Group members, AI Identities, Managed Hosts and Service Objects must exist before a referencing command runs.Last modified on October 29, 2026