Skip to main content

Command Reference

This reference mirrors the machine-readable catalog emitted by abapctl tools list --json, the same catalog an AI agent reads to discover what the CLI can do. Every command, parameter, and safety annotation on these pages is generated from that catalog, so it matches the binary it was generated from. Run abapctl tools list --json against your own build for the definitive list.

The commands are grouped into families by what they act on. Run abapctl --help to list them, or abapctl <family> --help for a family.

Safety annotations

Each command shows one or more badges so you can see what it does before running it. tools list --json reports three booleans for every command (readOnly, destructive, idempotent); the first three badges map directly to those, and WRITE covers the remaining case.

BadgeMeaning
READRead-only (readOnly: true). Makes no changes to the SAP system. Safe to run freely.
IDEMPIdempotent (idempotent: true). Running it again with the same inputs yields the same end state.
DESTRDestructive (destructive: true). Mutates the SAP system (or local state) and may not be reversible. Most support --dry-run to preview, and --yes to skip the confirmation prompt.
WRITEWrite. Changes SAP but is not flagged destructive or idempotent (none of the three booleans is set), for example create, transport create, and run. Most support --dry-run.

A command may carry more than one badge. Read-only commands are also idempotent (READ + IDEMP), and some destructive commands are idempotent (for example service unpublish is DESTR + IDEMP).

See JSON output and safety annotations for how agents consume these flags.

Global options

Every command accepts these global options:

OptionDescription
--verboseEnable debug-level output.
--log-file [path]Write a log to file (auto-generates a path if no argument is given).
--jsonOutput results as structured JSON. Available on all commands.
--session-file <path>Reuse a SAP session across invocations (persists CSRF token + cookies).
--connection <name> (-c)Select the SAP connection profile to use for the call.

Exit codes

CodeMeaning
0Success.
1Partial failure. A check found issues, or some objects failed.
2Error. Bad config, auth failure, SAP error, or unexpected exception.

Command families

FamilySummary
Standalone & configTop-level commands plus the config group for managing local connection profiles.
object: Browse and manage objectsInspect, search, browse, activate, and delete existing ABAP objects.
code: Navigation and intelligenceGo to definition, element info, where-used, usage snippets, and compiler-authoritative completion.
refactor: Refactoring and quick fixesQuick fixes, rename, extract method, and move-to-package.
source: Download and upload sourceRead and write ABAP source through the lock → write → unlock → activate lifecycle.
data: Preview dataDesign-time data preview against DDIC tables, CDS views, and freestyle ABAP SQL.
check: Quality checksSyntax checks, ATC runs, the find → inspect → fix loop, ABAP Unit, and exemptions.
cds: CDS intelligenceAnnotation definitions, element-info trees, entity → DDL resolution, and test dependencies.
service: Service binding lifecyclePublish, unpublish, inspect, and smoke-test OData service bindings (V2 and V4).
ddic: DDIC deep metadataRead-only deep metadata for tables, structures, domains, data elements, and more.
package: PackagesDiscover packages, check existence, and look up valid field values.
transport: Transport requestsCheck requirements, create, list, inspect, release, and delete transport requests.
create: Create new objectsCreate new ABAP objects via --source or typed flags, with transport auto-selection.
bdef: Behavior definitionsRead and create RAP behavior definitions and list assigned BO interfaces.
enho: Enhancement implementationsSource-level read of ENHO on a base object, plus a scoped inventory.
workspace: Local ↔ SAP syncBidirectional sync between local files and SAP objects, like git clone.
clean-core: Assessment and remediationATC-driven Clean Core assessment, classification, reporting, prep, and apply.
release-state: API release stateLive CDS-view lookup of deprecated-API release state and successors.
odata: OData runtime consumptionConsume published OData runtime services over the Gateway.
system & monitor: System facts and diagnosticsSystem facts (kernel/DB/OS), software components, and runtime diagnostics.
text-elements: Translatable textRead and write translatable symbols, selections, and headings.
reference: SAP API reference dataManage the locally cached SAP API reference data.