type alias Command

MikroTik API command structure

Represents a command with optional attributes and query parameters. Commands are converted to word arrays for transmission over the API.

Properties

command: string

The command path (e.g., "/interface/print", "/login")

optional
attributes: Record<string, string | number | boolean>

Optional attributes (e.g., {".id": "ether1", "disabled": "yes"})

optional
queries: Record<string, string | number | boolean>

Optional query parameters for filtering results

Usage

import { type Command } from "protocol/command.ts";