Skip to content

Latest commit

 

History

History
70 lines (57 loc) · 2.87 KB

File metadata and controls

70 lines (57 loc) · 2.87 KB
title CLI
description Use the macrodata command line interface with Refiner

CLI

The macrodata CLI authenticates, submits scripts, inspects jobs, follows logs, reads metrics, and manages secrets.

Most inspection commands have a human-readable default and a --json mode for agents, scripts, notebooks, and CI jobs. Prefer --json whenever another program will parse the output.

macrodata jobs get job_123 --json
macrodata jobs logs job_123 --stage 0 --severity error --json
macrodata secrets list --env production --json

Subcommands

Agent-friendly output

Use --json on commands that return structured platform data:

  • macrodata jobs list --json
  • macrodata jobs get <job_id> --json
  • macrodata jobs manifest <job_id> --json
  • macrodata jobs workers <job_id> --json
  • macrodata jobs logs <job_id> --json
  • macrodata jobs metrics <job_id> <stage_index> --json
  • macrodata jobs resource-metrics <job_id> <stage_index> --json
  • macrodata jobs cancel <job_id> --json
  • macrodata secrets list --json
  • macrodata secrets set <name> --value-stdin --json
  • macrodata secrets remove <name> --json
  • macrodata secrets delete <name> --json

Pagination commands return cursors in JSON responses and print a follow-up command in human-readable mode. Use --cursor with jobs list, jobs workers, and jobs logs.

Help

Every command exposes its current options through --help:

macrodata --help
macrodata jobs logs --help
macrodata jobs metrics --help