Use this skill when an agent needs to deploy or manage project versions on RobotX using the robotx CLI.
which robotx || which robotx_clicurl -fsSL https://raw.githubusercontent.com/haibingtown/robotx_cli/main/scripts/install.sh | bashgo install github.com/haibingtown/robotx_cli/cmd/robotx@latestcurl -fsSL https://raw.githubusercontent.com/haibingtown/robotx_cli/main/scripts/go-install.sh | bashSet credentials by config file (~/.robotx.yaml) or env vars:
ROBOTX_BASE_URLROBOTX_API_KEYBefore running any API command (deploy, projects, versions, status, logs, publish),
verify local auth first.
Recommended quick check:
robotx projects --limit 1 --output json
If you see auth-related errors (missing_base_url, missing_api_key, 401, 403), always try robotx login first, then fall back only if login fails:
robotx login and retry the original command.robotx login --base-url https://robotx.xin~/.robotx.yaml.--no-browser and open the printed URL manually.robotx.xin (not api.robotx.xin).export ROBOTX_BASE_URL=https://your-robotx-server.comexport ROBOTX_API_KEY=your-api-key~/.robotx.yaml:base_url: https://your-robotx-server.com
api_key: your-api-key
For CI/non-interactive environments, prefer env vars over robotx login.
For agents and workflows, always use structured output:
robotx deploy . --name my-app --output jsonrobotx projects --limit 50 --output jsonrobotx versions --project-id proj_123 --output jsonrobotx status --project-id proj_123 --output jsonrobotx logs --build-id build_456 --output jsonrobotx publish --project-id proj_123 --build-id build_456 --output jsonJSON is written to stdout. Progress logs are written to stderr.
robotx deploy [path] --name "My App" [--publish] [--wait=true]
By default, deploy --name is create-or-update for the same owner.
robotx versions --project-id proj_123 [--limit 20]
versions alias: robotx builds --project-id proj_123.
robotx projects [--limit 50]
robotx status --project-id proj_123 [--build-id build_456] [--logs]
status accepts --project-id, --build-id, or both. If --logs is set, --build-id is required.
robotx logs --build-id build_456 [--project-id proj_123]
robotx publish --project-id proj_123 --build-id build_456
robotx mcp is currently a placeholder and not available for production use. Use shell/CLI mode for agent integration.
共 2 个版本