← 返回
开发者工具 Key 中文

Clovercli

Command-line interface for managing Clover POS data including inventory, orders, payments, customers, employees, discounts, taxes, tenders, and reports with...
用于管理Clover POS数据(包括库存、订单、支付、客户、员工、折扣、税费、支付方式和报表等)的命令行接口...
g9pedro
开发者工具 clawhub v1.0.0 1 版本 99796.5 Key: 需要
★ 1
Stars
📥 1,942
下载
💾 37
安装
1
版本
#latest

概述

CloverCLI Skill

CLI for Clover POS API — inventory, orders, payments, customers, employees, discounts, and analytics.

Version: 1.2.0 (90-day chunking, retry logic, period shortcuts, discounts, taxes, tenders)

Setup

# Install from npm
npm i -g @versatly/clovercli

# Or clone and build
cd ~/Projects
git clone https://github.com/Versatly/clovercli.git
cd clovercli && npm install && npm run build

# Set credentials (add to ~/.bashrc)
export CLOVER_ACCESS_TOKEN="your-token"
export CLOVER_MERCHANT_ID="your-merchant-id"

# Optional alias
alias clover='clovercli'

Quick Reference

# Check connection
clovercli auth status
clovercli merchant get

# Business dashboard
clovercli reports summary

Reports with Period Shortcuts ✨

# Using --period (new in v1.2.0!)
clovercli reports sales --period today
clovercli reports sales --period yesterday
clovercli reports sales --period this-week
clovercli reports sales --period last-week
clovercli reports sales --period this-month
clovercli reports sales --period last-month
clovercli reports sales --period mtd          # Month to date
clovercli reports sales --period ytd          # Year to date

# Or use explicit dates
clovercli reports sales --from 2026-01-01 --to 2026-01-31
clovercli reports daily --period this-month
clovercli reports hourly --date 2026-02-03
clovercli reports top-items --limit 20
clovercli reports payments
clovercli reports refunds
clovercli reports taxes
clovercli reports categories
clovercli reports employees
clovercli reports compare --period1-from ... --period2-from ...

# Export data
clovercli reports export orders --output orders.csv --format csv
clovercli reports export items --output items.json

Merchant Settings

# Merchant info
clovercli merchant get

# Tax rates
clovercli merchant taxes list

# Payment tenders
clovercli merchant tenders list

Discounts (v1.2.0+)

clovercli discounts list
clovercli discounts get <id>
clovercli discounts create --name "10% Off" --percentage 10
clovercli discounts create --name "$5 Off" --amount 500
clovercli discounts delete <id>

Inventory

clovercli inventory items list
clovercli inventory items get <id>
clovercli inventory categories list
clovercli inventory stock list

Orders & Payments

clovercli orders list --limit 50
clovercli orders get <id>

clovercli payments list --limit 50
clovercli payments get <id>

Customers & Employees

clovercli customers list
clovercli customers get <id>

clovercli employees list
clovercli employees get <id>

Raw API Access

clovercli api get '/v3/merchants/{mId}/tax_rates'
clovercli api get '/v3/merchants/{mId}/modifiers'

Output Formats

All list commands support:

  • --output table (default) — formatted table
  • --output json — raw JSON
  • --quiet — IDs only

Reliability Features (v1.2.0+)

  • 90-day auto-chunking: Long date ranges automatically split into chunks
  • Exponential backoff: Auto-retry on rate limits with backoff
  • Retry-after support: Respects Clover's retry-after header

Regions

RegionUse
-------------
usUS merchants (default)
euEurope
laLatin America
sandboxDevelopment/testing

Set via: export CLOVER_REGION=eu

Known Clients

ClientMerchant IDNotes
----------------------------
REMEMBR6KF70H0B6E041Mauricio's Brazilian restaurant (Pedro's dad)

Source

  • npm: https://www.npmjs.com/package/@versatly/clovercli
  • GitHub: https://github.com/Versatly/clovercli

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 19:01 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 324,172
ai-intelligence

ClawVault

g9pedro
具备记忆图谱、上下文配置、检查点/恢复、结构化存储、语义搜索、观察记忆、任务追踪、画布等功能的代理记忆系统。
★ 10 📥 10,069
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,188