SAPF CLI
Direct RFC access to any SAP system from your terminal. Query tables, manage users, build SAP integrations — faster than MCP, scriptable, and usable from Claude Code, Gemini, or any terminal AI tool.
CLI vs MCP — when to use which
Use sapf-cli when…
- ✓ You need maximum speed — direct RFC, no protocol overhead
- ✓ You're scripting, automating, or running batch operations
- ✓ You're building a custom SAP integration or app
- ✓ You're using Claude Code, Gemini, or an AI terminal tool
- ✓ You need CI/CD pipeline integration
Use SAPF MCP when…
- ✓ You want Claude.ai, ChatGPT, or Copilot Studio to access SAP
- ✓ You need a web dashboard (SAPF Dashboard uses MCP internally)
- ✓ You want persistent tool permissions and audit logs for a team
- ✓ You're connecting business users — not developers
Both use the same ZBAPI transport installed in your SAP system.
Installation
curl -L https://app.sapfever.com/api/releases/sapf-cli/latest/linux-amd64 -o sapf-cli
chmod +x sapf-cli
sudo mv sapf-cli /usr/local/bin/
sapf-cli --versionOr download from your Downloads page after signing in.
Get started
Get a license key
The Discover tier is free forever — no credit card required. Get your license key at sapfever.com/pricing.
sapf-cli license activate YOUR_LICENSE_KEY
sapf-cli license statusAdd your SAP system
sapf-cli config add-system \
--name ECC-001 \
--host sap-host.company.com \
--sysnr 00 \
--system-id ECC \
--user MYUSER \
--pass MyPasswordRun your first query
sapf-cli tool execute query_tables --system ECC-001 \
-p tableName=T001 \
-p "selectFields=BUKRS,BUTXT,WAERS" \
-p maxRows=10What you can build
sapf-cli is a foundation layer. Use it directly, wire it into scripts, or build full SAP integrations on top of it.
SAP data pipelines
Query any SAP table with JOINs, filters, and aggregations. Pipe results into downstream
systems, data warehouses, or reporting tools. query_tables is available on all tiers.
User & access automation
Automate SAP user provisioning, validity extensions, and access reviews. Script onboarding flows and expiry checks across multiple systems.
Custom SAP integrations
Build your own applications that talk to SAP. Use sapf-cli as the RFC layer inside Node.js scripts, Python apps, CI/CD pipelines, or any shell-driven workflow.
AI coding assistants
Add sapf-cli to Claude Code, Gemini, or any AI terminal tool. The AI calls tool execute directly — inspect objects, query tables, manage users — all from an AI coding session.
query_tables
Available on all tiers including Discover (free). The most-used sapf-cli tool.
Enterprise SAP table querying with SQL capabilities. Query any transparent table with WHERE clauses, JOINs, ORDER BY, GROUP BY, and aggregations.
| Parameter | Required | Description |
|---|---|---|
tableName | Yes | SAP table name |
selectFields | No | Comma-separated fields (default: all) |
whereClause | No | SQL WHERE clause |
maxRows | No | Max rows (default: 100) |
orderBy | No | Sort field |
groupBy | No | Group by field |
# Query company codes
sapf-cli tool execute query_tables --system ECC-001 \
-p tableName=T001 \
-p "selectFields=BUKRS,BUTXT,WAERS,LAND1" \
-p maxRows=20
# Query open POs for company code 1000
sapf-cli tool execute query_tables --system ECC-001 \
-p tableName=EKKO \
-p "selectFields=EBELN,LIFNR,BEDAT,WAERS" \
-p "whereClause=BUKRS = '1000'" \
-p maxRows=10 \
-p orderBy=BEDATBuild & deploy custom tools
Create your own ABAP tools and deploy them to your SAP system. Available on all paid tiers.
# Scaffold
sapf-cli tool init my_tool --category Business
# Fit metadata after editing ABAP
sapf-cli tool fit my_tool_template.json my_tool.abap
# Deploy
sapf-cli tool create my_tool \
--template-file my_tool_template.json \
--source-file my_tool.abap
# Test
sapf-cli tool execute my_tool -p param1=value1
# Update later
sapf-cli tool update my_tool --source-file my_tool.abapAgentic ABAP development tools
Premium tools for AI-assisted ABAP development — available on developer license tiers. Designed for use with Claude Code, Gemini CLI, and other AI terminal tools.
discover_objects— find objects by name or packageinspect_object— metadata, fields, relationshipsget_source— retrieve live ABAP sourcevalidate_abap— syntax check
deploy_source— deploy programs and classesdeploy_domain/deploy_dataelementdeploy_structure/deploy_tabledeploy_view/deploy_searchhelp