GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - square/cli: The Square CLI - command-line access to Square APIs for developers and AI agents. This repo hosts release binaries and documentation.

BranchesTags
Open more actions menu

Latest commit

 

History

31 Commits
31 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
npm
npm
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
THIRD-PARTY-NOTICES.md
THIRD-PARTY-NOTICES.md
 
 

Repository files navigation

Square CLI

The Square CLI (square) gives you and your AI agents command-line access to the public Square API: catalog, orders, payments, customers, inventory, and more. Every command follows a predictable shape and returns structured output you can pipe, filter, and hand to a model.

Note

The Square CLI is in Beta. To give feedback or report a bug, open an issue.

Documentation: developer.squareup.com/docs/cli

Install

Install from npm (requires Node.js):

npm install -g @square/cli
square --version

Or run it without installing:

npx -y @square/cli --help

Standalone binaries

Prebuilt binaries for macOS, Linux, and Windows are attached to each release. Download the one for your platform, verify it against checksums.txt, and put it on your PATH. For example, on an Apple silicon Mac:

shasum -a 256 --check --ignore-missing checksums.txt
chmod +x square-darwin-arm64
xattr -d com.apple.quarantine square-darwin-arm64   # only if you downloaded it in a browser
mv square-darwin-arm64 /usr/local/bin/square

Linux binaries need glibc (for example, Debian or Ubuntu). Alpine and other musl-based distributions aren't supported.

If you redistribute a binary, include THIRD-PARTY-NOTICES.md from the same release.

Updates

Once a day, the CLI asks the npm registry (registry.npmjs.org) in the background whether a newer @square/cli release is out. The request sends no credentials or account data. When there's a newer version, commands you run in a terminal end with a notice that names the update step for how you installed the CLI:

Installed with Update with
npm install -g @square/cli square --update
npx -y @square/cli npx -y @square/cli@latest
pnpm add -g or bun add -g pnpm add -g @square/cli@latest or bun add -g @square/cli@latest
A standalone binary Download the latest release

JSON and piped output never include the notice, so agents and scripts don't see it. To turn the check off, set NO_UPDATE_NOTIFIER=1. The CLI also skips it when CI is set.

Authenticate

Sign in with your Square account in the browser (OAuth with PKCE):

square auth login
square auth status

If the CLI can't open a browser, run square auth login --no-open to print the authorization URL instead. Sign-in returns to http://localhost:5000 on the machine running the CLI, so on a remote host, forward that port first (ssh -L 5000:localhost:5000 HOST) and open the URL in your local browser.

The CLI doesn't accept access tokens. It ignores the SQUARE_ACCESS_TOKEN environment variable. To call Square from CI or a server with an access token, use the Square API directly.

See Authentication for all options.

Usage

Commands follow the shape square <domain> <resource> <verb> [args] [options]:

square catalog item list --limit 10
square payments payment get PAYMENT_ID
square orders order search --location-ids LOCATION_ID

Run --help at any level to see what's available:

square --help
square catalog --help
square catalog item --help

For every command, see the command reference.

Output is JSON by default. Use --format for toon, yaml, md, or jsonl, and --filter-output to keep only the fields you need:

square catalog item list --filter-output 'objects[].id,objects[].itemData.name'

Use with AI agents

square --llms --format json        # every command and its description
square catalog item list --schema  # JSON Schema for one command
square skills add                  # sync skill files into your agent

The CLI doesn't run as an MCP server. To connect an MCP client to Square, use the Square MCP server.

License

The Square CLI is proprietary software. Your use is subject to the Square Developer Terms of Service. This repository doesn't contain the CLI source code. See LICENSE.

About

The Square CLI - command-line access to Square APIs for developers and AI agents. This repo hosts release binaries and documentation.

Resources

Readme
License
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.