Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Square CLI

$ square Official High Risk
Square · Workspace & SaaS · Proprietary (Square Developer Terms) · macos / linux / windows

Square CLI (square) gives developers and coding agents direct access to Square catalog, orders, payments, inventory, and customer APIs. Purpose-built for LLM discovery with square --llms --format json command manifests and per-command --schema JSON Schema output.

FCRS-1.0 Score
89 /100
Good
Medium Confidence
Zero-Friction Install
npm install -g @square/cli
CLI vs MCP Decision Hybrid (CLI + MCP)

square exposes full --llms and --schema introspection locally for scriptable commerce calls; Square MCP is better when hosting remote OAuth-delegated assistant sessions.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 24 / 25

First-class agent ergonomics with --llms, per-command --schema, and --format json across API resources.

  • square --llms --format json exports machine-readable command manifests
  • Every subcommand supports --schema introspection
Trust & Safety 21 / 25

Separates Sandbox and Production profiles cleanly, though live payment and catalog API calls mutate merchant/billing state.

  • Supports Sandbox isolation and explicit --schema validation
Setup & Portability 13 / 15

Installable via npm install -g @square/cli, npx -y @square/cli, and standalone GitHub release binaries.

  • Cross-platform binaries and npm/npx distribution
Utility & Efficiency 13 / 15

Covers Square's entire commerce API surface without writing boilerplate SDK scripts.

  • Maps catalog, orders, payments, inventory, and locations directly to CLI verbs
Maintenance & Lineage 9 / 10

Official Square repository (square/cli), though distributed under proprietary Square Developer Terms rather than an OSI license.

  • Published and maintained directly by Square (square about)
Docs & Verifiability 9 / 10

Self-documenting via --schema and --llms alongside Square Developer documentation.

  • Built-in --schema and --llms outputs match live CLI behavior

Security, Auth & Guardrails

Auth Modes
Env API Key OAuth Browser Config File
Credential Storage

Stores Sandbox and Production profile tokens in local Square CLI configuration under ~/.square/ or accepts access tokens via environment variables and flags.

Side Effects
Read-Only Remote Write Billing Impact
Cost & Quotas

CLI is free under Square Developer Terms; live payment processing incurs standard Square transaction fees.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Square CLI (square) Agent Rules
- Run `square --llms --format json` and `<cmd> --schema` instead of guessing API flags.
- Target Sandbox credentials before testing payments, refunds, or order mutations.
- Never execute live production charges or refunds without explicit human confirmation.

Agent-Ready Command Recipes

Safe Read-Only Queries

Dump LLM-readable command manifest
square --llms --format json

Emits the complete Square CLI command tree and descriptions as structured JSON for agent planning.

Inspect JSON Schema for a Square command
square catalog list --schema

Prints the exact argument, flag, and payload JSON Schema before invoking the Square API.

Controlled Writes & Previews

Query Square Sandbox locations
square locations list --format json

Fetches merchant locations from the active Square profile in machine-readable JSON.

Strengths for Agents

  • + Native --llms and --schema flags let agents discover exact command contracts in zero guesswork.
  • + Clean JSON/YAML formatting with --format json and npx -y @square/cli portability.

Caveats & Pitfalls

  • ! Proprietary software subject to Square Developer Terms rather than an open-source license.
  • ! Production tokens can trigger real payments, refunds, and catalog edits if Sandbox is not enforced.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI