sapf-cli
Direct RFC access to any SAP system from the terminal. Use it manually, wire it into Claude Code or Gemini, or script it in CI/CD pipelines.
Quick Start
Add a SAP system
sapf-cli config add-system \
--name ECC-001 \
--host sap-host.company.com \
--sysnr 00 \
--system-id ECC \
--user MYUSER \
--pass MyPasswordCheck your license
sapf-cli license statusRun your first tool
sapf-cli tool execute query_tables --system ECC-001 \
-p tableName=T001 \
-p "selectFields=BUKRS,BUTXT" \
-p maxRows=5Using with AI Coding Tools
Claude Code
Add sapf-cli to your PATH. Claude Code can call sapf-cli tool execute directly as a shell command during ABAP development sessions.
Example prompt
"Check the structure of table EKKO and show me the first 3 purchase orders for company code 1000"
Claude would run:
sapf-cli tool execute inspect_object \
--system ECC-001 \
-p objectType=TABL \
-p objectName=EKKO \
-p includeFields=trueGemini / Other AI Terminals
Same approach — sapf-cli is a standard CLI. Any AI tool that can run shell commands can use it without any special integration.
Point the AI to the built-in documentation for self-service context:
# List all built-in docs
sapf-cli docs list
# Search for specific topics
sapf-cli docs search query_tables
# Show a specific doc
sapf-cli docs show tools/query_tablesAll tool schemas, parameter definitions, and examples are accessible directly from the CLI — no external docs required.
Command Reference
Tool & Resource commands
| Command | Description |
|---|---|
tool execute <name> | Run a tool against SAP |
tool list | List all available tools |
tool get <name> | Get tool details |
tool init <name> | Scaffold new tool |
tool fit <tmpl> <abap> | Analyse ABAP, update template |
tool create <name> | Deploy tool to SAP |
tool update <name> | Redeploy updated ABAP |
tool enable/disable/delete | Manage tool state |
resource * | Same lifecycle as tool |
Config & Utility commands
| Command | Description |
|---|---|
config add-system | Add SAP system |
config list-systems | List configured systems |
config set-default | Set default system |
config show | Show config (passwords redacted) |
license status | Check license & usage |
license activate <key> | Activate a license key |
docs list | Browse built-in docs |
docs search <query> | Search built-in docs |
Pass --system <name> to target a specific SAP system. Omit to use the default.
Publish to Marketplace
Once your tool is ready, publish it directly to the SAPF Tool Store via CLI.
# Log in to the SAPF marketplace
sapf-cli store auth login
# Publish your tool
sapf-cli store publish \
--template-file my_tool_template.json \
--source-file my_tool.abap
# Check publish status
sapf-cli store statusSee the full CLI reference for store commands, versioning, and pricing options.
Go deeper
Full command reference, parameter flags, and examples in the CLI docs.