CLI Tool AI-Agent Ready

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

1

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 MyPassword
2

Check your license

sapf-cli license status
3

Run your first tool

sapf-cli tool execute query_tables --system ECC-001 \
  -p tableName=T001 \
  -p "selectFields=BUKRS,BUTXT" \
  -p maxRows=5

Using 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=true

Gemini / 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_tables

All tool schemas, parameter definitions, and examples are accessible directly from the CLI — no external docs required.

Command Reference

Tool & Resource commands

CommandDescription
tool execute <name>Run a tool against SAP
tool listList 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/deleteManage tool state
resource *Same lifecycle as tool

Config & Utility commands

CommandDescription
config add-systemAdd SAP system
config list-systemsList configured systems
config set-defaultSet default system
config showShow config (passwords redacted)
license statusCheck license & usage
license activate <key>Activate a license key
docs listBrowse 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 status

See the full CLI reference for store commands, versioning, and pricing options.

Go deeper

Full command reference, parameter flags, and examples in the CLI docs.