← All procedures
tailscale.run
Run a tailscale command (status, ip, serve, up, down)
CLI- Package
- @procedures/tailscale · README
- Path
["tailscale","run"]- CLI
mark tailscale run --path <string[]>- As data
{"$proc":["tailscale","run"],"input":{}}
Use it
In TypeScript
import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/tailscale/register"; // registers its procedures
const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["tailscale","run"], { path: [] });
console.log(JSON.stringify(result));From the command line
$ mark tailscale run --path <string[]>
As data, in a program
{ "$proc": ["tailscale", "run"], "input": { "path": [] } }Input
Output
JSON Schemas
{
"input": {
"type": "object",
"properties": {
"path": {
"minItems": 1,
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z][a-z-]*$"
},
"description": "The tailscale command, for example [\"status\"], [\"ip\"] or [\"serve\", \"status\"]"
},
"positional": {
"description": "The positional arguments",
"type": "array",
"items": {
"type": "string"
}
},
"args": {
"description": "The flags, for example { bg: true }",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
}
},
"json": {
"default": false,
"description": "Ask for JSON output (--json) and read it. Only some commands have it (status, serve status).",
"type": "boolean"
},
"executable": {
"not": {}
},
"timeout": {
"default": 60000,
"description": "The time limit, in milliseconds (default: 60000)",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"path"
]
},
"output": {
"type": "object",
"properties": {
"exitCode": {
"type": "number"
},
"success": {
"type": "boolean"
},
"stdout": {
"type": "string"
},
"stderr": {
"type": "string"
},
"json": {},
"actionUrl": {
"type": "string"
}
},
"required": [
"exitCode",
"success",
"stdout",
"stderr"
],
"additionalProperties": false
}
}