CLI for SAP ADT REST API
Project description
erpl-adt
CLI and MCP server for the SAP ADT REST API — a single binary that talks the same HTTP endpoints Eclipse ADT uses. No Eclipse, no SAP NW RFC SDK, no JVM.
Part of the Datazoo ERPL family.
What it does
- Search and browse ABAP objects, packages, data dictionary tables, CDS views
- Read and write source code with lock management and transport integration
- Run tests — ABAP Unit and ATC quality checks from the command line
- Manage transports — create, list, and release transport requests
- MCP server — expose all capabilities to AI agents over JSON-RPC (MCP 2024-11-05)
Every command accepts --json for machine-readable output.
Quick examples
# Save connection credentials (prompts for password)
erpl-adt login --host sap.example.com --port 44300 --https --user DEVELOPER
# Search for classes matching a pattern
erpl-adt search ZCL_MY_* --type CLAS --max 20
# Read object metadata and source code
erpl-adt object read /sap/bc/adt/oo/classes/zcl_my_class
erpl-adt source read /sap/bc/adt/oo/classes/zcl_my_class/source/main
# Write source code (auto-locks, writes, unlocks)
erpl-adt source write /sap/bc/adt/oo/classes/zcl_my_class/source/main --file impl.abap
# Write and activate in one step
erpl-adt source write /sap/bc/adt/oo/classes/zcl_my_class/source/main --file impl.abap --activate
# Activate an object by name
erpl-adt activate ZCL_MY_CLASS
# Run unit tests and ATC checks (by name or URI)
erpl-adt test ZCL_MY_CLASS
erpl-adt check ZCL_MY_CLASS --variant DEFAULT
# Create a transport request and release it
erpl-adt transport create --desc "Feature XYZ" --package ZPACKAGE
erpl-adt transport release NPLK900042
# Browse packages and data dictionary
erpl-adt package tree ZPACKAGE --type CLAS
erpl-adt ddic table SFLIGHT
erpl-adt ddic cds I_AIRLINE
# Check syntax
erpl-adt source check /sap/bc/adt/oo/classes/zcl_my_class/source/main
Installation
The quickest way to run erpl-adt — no download needed:
uvx erpl-adt --help
Or install permanently:
pip install erpl-adt
Alternatively, download the binary for your platform from the latest release, or build from source.
| Platform | Architecture |
|---|---|
| Linux | x86_64 |
| macOS | arm64, x86_64 |
| Windows | x64 |
Full reference
Run erpl-adt --help for the complete command listing. Key commands:
SEARCH — Search for ABAP objects
search <pattern> Search for ABAP objects
--type <type> Object type: CLAS, PROG, TABL, INTF, FUGR
--max <n> Maximum number of results
OBJECT — Read, create, delete, lock/unlock ABAP objects
object create Create an ABAP object
--type, --name, --package (required)
--description, --transport
object delete <uri> Delete an ABAP object
object lock <uri> Lock an object for editing
object read <name-or-uri> Read object structure
object run <class-name-or-uri> Run an ABAP console class (IF_OO_ADT_CLASSRUN)
object unlock <uri> Unlock an object
SOURCE — Read, write, and check ABAP source code
source check <name-or-uri> Check syntax
source edit <name-or-uri> Open source in $EDITOR and write back
source read <name-or-uri> Read source code
--version <version> active or inactive (default: active)
--section <section> main, localdefinitions, localimplementations, testclasses, all
--color / --no-color ANSI syntax highlighting
source write <name-or-uri> Write source code
--file <path> Path to local source file (required)
--activate Activate the object after writing
--optimistic Try lockless write first (pre-7.51 SAP)
ACTIVATE — Activate inactive ABAP objects
activate <name-or-uri>
TEST / CHECK
test <name-or-uri> Run ABAP unit tests
check <name-or-uri> Run ATC quality checks
--variant <name> ATC variant (default: DEFAULT)
TRANSPORT — List, create, and release transports
transport create --desc <text> --package <pkg>
transport list [--user <user>]
transport release <number>
DATA DICTIONARY — Tables and CDS views
ddic table <name> Get table definition (fetches lengths + descriptions by default)
--no-resolve-types Skip data-element lookup; show field names and types only
--raw Print raw SAP XML response
ddic cds <name> Get CDS view source
PACKAGE — List contents and check package existence
package exists <name>
package list <name>
package tree <name> Recursive BFS traversal
--type <type> Filter: CLAS, PROG, TABL, INTF, FUGR
--max-depth <n> (default: 50)
GLOBAL FLAGS
--host, --port, --user, --password, --client
--https, --insecure
--json Machine-readable JSON output
--color / --no-color
--timeout <sec>
--session-file <path> Persist session for lock/write/unlock workflows
-v / -vv INFO / DEBUG logging
EXIT CODES
0 Success 1 Connection/auth 2 Not found 5 Activation error
6 Lock conflict 7 Test failure 8 ATC check error 99 Internal error
MCP server
erpl-adt includes a built-in MCP server (Model Context Protocol, version 2024-11-05) that exposes all ADT operations as tools over JSON-RPC 2.0 on stdin/stdout. This lets AI agents search, read, write, test, and manage ABAP code directly.
erpl-adt mcp --host sap.example.com --port 44300 --https
Configure it in your MCP client (e.g., Claude Desktop, Claude Code):
{
"mcpServers": {
"erpl-adt": {
"command": "erpl-adt",
"args": ["mcp", "--host", "sap.example.com", "--port", "44300", "--https"],
"env": {
"SAP_PASSWORD": "your_password"
}
}
}
}
Deploy workflow
erpl-adt also includes the original deploy workflow for automated abapGit package deployment via YAML configuration:
cat > config.yaml <<EOF
connection:
host: localhost
port: 50000
use_https: false
client: "001"
user: DEVELOPER
password_env: SAP_PASSWORD
repos:
- name: flight
url: https://github.com/SAP-samples/abap-platform-refscen-flight.git
branch: refs/heads/main
package: /DMO/FLIGHT
activate: true
EOF
export SAP_PASSWORD=your_password
erpl-adt deploy -c config.yaml
The deploy workflow is an idempotent state machine: discover → create package → clone → pull → activate. Each step checks preconditions and skips if already satisfied. Re-running is safe. Supports multi-repo deployments with depends_on for topological ordering.
Building from source
git clone --recurse-submodules https://github.com/datazooDE/erpl-adt.git
cd erpl-adt
make release
Requires CMake 3.21+, Ninja, and a C++17 compiler (GCC 13+, Apple Clang 15+, or MSVC 17+). vcpkg is included as a git submodule.
To run the tests:
make test # Unit tests (offline, no SAP system needed)
make test-integration-py # Integration tests (requires SAP system)
Docker
docker build -t erpl-adt .
docker run --rm -v $(pwd)/config.yaml:/config.yaml \
-e SAP_PASSWORD=your_password \
erpl-adt deploy -c /config.yaml
Or use Docker Compose for end-to-end provisioning with a SAP ABAP Cloud Developer Trial:
docker compose up
License
Apache License 2.0 — Copyright 2026 Datazoo GmbH
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file erpl_adt-2026.5.2-py3-none-win_amd64.whl.
File metadata
- Download URL: erpl_adt-2026.5.2-py3-none-win_amd64.whl
- Upload date:
- Size: 3.6 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
055bad92b64ba62e894f5d519739abb92ccdb42bcbb84f7ed2d275036b7ff5ab
|
|
| MD5 |
29fbc04fcd9d9e82a8c06d7dc8f31ae2
|
|
| BLAKE2b-256 |
1dbe0efeee06eeabc2eae53ff50676016e03125165b8017f55d6cd00e8d32f70
|
Provenance
The following attestation bundles were made for erpl_adt-2026.5.2-py3-none-win_amd64.whl:
Publisher:
release.yaml on DataZooDE/erpl-adt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
erpl_adt-2026.5.2-py3-none-win_amd64.whl -
Subject digest:
055bad92b64ba62e894f5d519739abb92ccdb42bcbb84f7ed2d275036b7ff5ab - Sigstore transparency entry: 1418687349
- Sigstore integration time:
-
Permalink:
DataZooDE/erpl-adt@f11ce023986aa81c655ba33d0733dc127db98416 -
Branch / Tag:
refs/tags/v2026.05.02 - Owner: https://github.com/DataZooDE
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@f11ce023986aa81c655ba33d0733dc127db98416 -
Trigger Event:
push
-
Statement type:
File details
Details for the file erpl_adt-2026.5.2-py3-none-manylinux_2_17_x86_64.whl.
File metadata
- Download URL: erpl_adt-2026.5.2-py3-none-manylinux_2_17_x86_64.whl
- Upload date:
- Size: 6.3 MB
- Tags: Python 3, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d9d2f187c14ab1cb092a6680b77d03e15b7f0f5a91a774b1a92ea333882b3c9
|
|
| MD5 |
133198d8b73eadbd4288a4f9c2f4e483
|
|
| BLAKE2b-256 |
73cb8f8ee20e9da339c95a07a9c8a850ff81bd3ff28183f927a1f6aee065f429
|
Provenance
The following attestation bundles were made for erpl_adt-2026.5.2-py3-none-manylinux_2_17_x86_64.whl:
Publisher:
release.yaml on DataZooDE/erpl-adt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
erpl_adt-2026.5.2-py3-none-manylinux_2_17_x86_64.whl -
Subject digest:
3d9d2f187c14ab1cb092a6680b77d03e15b7f0f5a91a774b1a92ea333882b3c9 - Sigstore transparency entry: 1418687057
- Sigstore integration time:
-
Permalink:
DataZooDE/erpl-adt@f11ce023986aa81c655ba33d0733dc127db98416 -
Branch / Tag:
refs/tags/v2026.05.02 - Owner: https://github.com/DataZooDE
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@f11ce023986aa81c655ba33d0733dc127db98416 -
Trigger Event:
push
-
Statement type:
File details
Details for the file erpl_adt-2026.5.2-py3-none-macosx_11_0_arm64.whl.
File metadata
- Download URL: erpl_adt-2026.5.2-py3-none-macosx_11_0_arm64.whl
- Upload date:
- Size: 4.4 MB
- Tags: Python 3, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de4ec4def8430fe418524fba32b33134427e8f3a57537d01708a3dd57bf02725
|
|
| MD5 |
8ee5fc779b50bd24930aec34c2188b1a
|
|
| BLAKE2b-256 |
2a115785178c9c0bc486ecb76e7586bd84108748a7365d6010b58e97cba15ed5
|
Provenance
The following attestation bundles were made for erpl_adt-2026.5.2-py3-none-macosx_11_0_arm64.whl:
Publisher:
release.yaml on DataZooDE/erpl-adt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
erpl_adt-2026.5.2-py3-none-macosx_11_0_arm64.whl -
Subject digest:
de4ec4def8430fe418524fba32b33134427e8f3a57537d01708a3dd57bf02725 - Sigstore transparency entry: 1418687258
- Sigstore integration time:
-
Permalink:
DataZooDE/erpl-adt@f11ce023986aa81c655ba33d0733dc127db98416 -
Branch / Tag:
refs/tags/v2026.05.02 - Owner: https://github.com/DataZooDE
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@f11ce023986aa81c655ba33d0733dc127db98416 -
Trigger Event:
push
-
Statement type:
File details
Details for the file erpl_adt-2026.5.2-py3-none-macosx_10_15_x86_64.whl.
File metadata
- Download URL: erpl_adt-2026.5.2-py3-none-macosx_10_15_x86_64.whl
- Upload date:
- Size: 4.3 MB
- Tags: Python 3, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20af91be8ea43a20299a76fa3255494869e80e84321803d16dc8844516795257
|
|
| MD5 |
a7b8f6a5d08f80fae6d3c191272bc7cc
|
|
| BLAKE2b-256 |
a7874df7115b4ba81bcd2f446674354de9044ade17fc8ec2fc11dccc9e9f1a38
|
Provenance
The following attestation bundles were made for erpl_adt-2026.5.2-py3-none-macosx_10_15_x86_64.whl:
Publisher:
release.yaml on DataZooDE/erpl-adt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
erpl_adt-2026.5.2-py3-none-macosx_10_15_x86_64.whl -
Subject digest:
20af91be8ea43a20299a76fa3255494869e80e84321803d16dc8844516795257 - Sigstore transparency entry: 1418687151
- Sigstore integration time:
-
Permalink:
DataZooDE/erpl-adt@f11ce023986aa81c655ba33d0733dc127db98416 -
Branch / Tag:
refs/tags/v2026.05.02 - Owner: https://github.com/DataZooDE
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@f11ce023986aa81c655ba33d0733dc127db98416 -
Trigger Event:
push
-
Statement type: