完整 CLI 清单
本页由仓库原文构建生成。技术正文保留原文;版本要求、授权与限制以正文为准。
| Command | One-liner | kind |
|---|---|---|
status |
active profile, switches, config source (plain text) | — |
update [--check] [--major] [--yes] |
explicit CLI update; same-major stable by default; no SAP configuration needed; read references/updating.md before applying | — |
configure [--profile N] |
save a profile (flags = non-interactive JSON; no flags = interactive wizard) | — |
profile list|use|remove |
manage environments | — |
credentials set|forget|status|doctor [--coverage] |
keystore management; doctor --coverage = command/resource matrix for this system |
— |
discovery |
ADT resources this system exposes (href/title/content-types) | capabilities |
run-class <NAME> |
explicitly approved IF_OO_ADT_CLASSRUN execution; —dry-run, hash-bound —yes, —timeout, —max-chars; no XML | execution |
run-report <NAME> [--variant V] [--parameters-file F] |
native default selections, or explicit temporary-Class SUBMIT wrapper with variant/RSPARAMS; classic List only, no GUI/ALV-control/Spool | execution |
run-abap --file FILE |
explicitly approved method-body snippet, local CALL FUNCTION/BAPI/method calls; temporary owned Class in $TMP; writes/activation/cleanup reported separately | execution |
get-function-signature <NAME> --group G |
observed active-source typed interface and hash; ambiguous/generic/reference types refused | scalar |
run-function <NAME> --group G --input-file F |
typed local CALL FUNCTION/BAPI via reviewed temporary Class; JSON result/SUBRC; no automatic COMMIT or business-success inference | execution |
list-feeds |
diagnostic feed catalog and FQL schemas | feeds |
query-feed <URI> [--query FQL] [--max-results N] [--page-uri URI] |
one advertised feed page; $query/$top; next_uri is explicit, never auto-fetch all |
feeds |
get-dump <ID_OR_URI> [--max-chars N] |
runtime dump XML metadata + bounded diagnostic chapters; partial detail exits 1 with gaps/ST22 fallback | dumps |
get-source <URI> [--start-line N] [--end-line N] |
read a returned repository source/test include URI on the current profile; optional one-based line window | source |
check-source <TYPE> <N> --file F [--part P] [--group G] |
check an unsaved candidate buffer; failed/unavailable is nonzero and preserves evidence; no mutation | findings |
create-object <TYPE> <N> --package P --description D [--group G] [--transport T] [--software-component C] [--transport-layer L] [--service-definition S] [--binding-protocol V2|V4] [--binding-category 0|1] [--dry-run] [--yes --expect-plan-sha256 H] |
explicit supported type; create once, revalidate absence/dependencies and read back metadata; no implicit source/activation/publication | scalar |
get-definition <domain|data-element|srvb> <N> |
XML definition in scalar envelope; SRVB read-only | scalar |
write-definition <domain|data-element> <N> --file F [--transport T] [--dry-run] [--yes --expect-plan-sha256 H] |
reviewed XML PUT under lock/readback/unlock; no implicit activation or existing DDIC storage conversion | scalar |
delete-object <TYPE> <N> [--group G] [--transport T] [--dry-run] [--yes --expect-plan-sha256 H] |
one customer object with independent absence readback; table/container/published-or-unknown SRVB deletion refused | scalar |
apply-change-set --file F [--dry-run] [--yes --expect-plan-sha256 H] |
bounded dependency DAG, verified writes, combined activation/readback, final Unit/ATC gates; separate create/source phases, no rollback | scalar |
get-rap <cds|bdef|srvd|srvb> <N> |
explicit RAP sources or binding metadata/service URLs/status; partial binding evidence exits 1 | source|scalar |
odata-read <SERVICE_ROOT> [--entity-set E] [--top N] [--max-bytes N] |
same-origin runtime metadata or bounded entity GET; no actions, redirects, arbitrary query or next-page traversal | scalar|rows |
debug serve |
bounded foreground HTTP owner; —ttl/—idle seconds, per-action gate; ready/final JSONL | debug |
debug status |
private local owner state; all clients require —session HANDLE | debug |
debug breakpoint |
one owned external source breakpoint; —uri SOURCE —line N; fresh gate | debug |
debug listen |
one bounded same-user long poll; —timeout 1..30; timeout is not a hit; fresh gate | debug |
debug attach |
—debuggee from this owner’s listener, exactly once; fresh gate | debug |
debug stack |
bounded attached stack read | debug |
debug vars |
explicit —id values or one —parent scope; —limit/—max-chars budgets | debug |
debug step |
one —action into/over/return; fresh gate; never automatic replay | debug |
debug continue |
resume execution; fresh gate; may modify business data | debug |
debug detach |
non-terminating detach and scoped cleanup; ends owner | debug |
debug cleanup |
independent scoped cleanup; —discard-local requires confirmation and leaves remote state unknown | debug |
get-versions <TYPE> <N> [--group G] [--max-results N] |
per-include version history; limit per part; partial history exits 1 | versions |
get-version-source <URI> |
opaque content_uri from get-versions; plain source default | source |
diff-versions <FROM_URI> <TO_URI> [--context N] |
local unified diff of two version contents; --format text for patch output |
diff |
compare-object <TYPE> <N> --from-profile A --to-profile B [--part P] [--group G] |
strict named profiles, isolated sessions; active source/metadata hashes and diff; same origin/client refused, missing side is a gap, never an empty baseline | scalar |
git status |
—repo ROOT: porcelain state, rename paths, branch and HEAD; no SAP credentials required | scalar |
git map |
TR —repo ROOT —mapping-file FILE [—commit REF] [—verify-transport]; explicit object/file links, optional current SAP membership verification | scalar |
git export |
Same arguments plus —output-file NEW.zip; changed mapped ABAP/XML/JSON files and existing .abapgit.xml; delta evidence, not a certified importable abapGit repository | scalar |
delivery pack |
REQUIREMENT —transport TR (repeatable) —asset KIND=PATH (repeatable) —target-fingerprint SHA —output-file NEW.zip; verifies nested hashes/target/TR/age, explicit missing evidence, no SAP calls or test replay | scalar |
get-transport <TRKORR> |
request/task metadata and deduplicated objects; read-only | records |
diagnose --output-file NEW.zip |
exactly one —dump-id ID or —message TEXT; optional —feed-uri/—query, —max-entries/—max-dumps/—max-chars; bounded dump/feed/termination-source evidence, literal candidate correlation only, gaps exit 1 | scalar |
get-object <TYPE> <N> [--max-nodes N] |
message-class, lock-object, enhancement-spot, badi (named BAdI spot and declared definitions), badi-implementation, enhancement-implementation, source-enhancement; enhancement-point lists lexical declarations in the named owner program | scalar |
transport diff |
request object diffs; missing baselines/unsupported objects/limits exit 1 with evidence gaps | diff |
transport analyze |
TRKORR, —max-objects 1..100, —depth 1..5, —max-nodes 1..500; request/tasks, bounded static reverse references, versioned explainable technical risk indicators, no release approval | scalar |
transport compare |
TRKORR —from-profile A —to-profile B [—max-objects N]; compare selected request object identities on two active systems, not exact released snapshots or import predictions | scalar |
get-program / -class / -function-group / -function --group / -include / -interface / -cds-view / -type-group |
read source; get-class accepts —part main/definitions/implementations/testclasses | source |
get-table / get-structure <N> |
DDIC fields (DDL on S/4) | fields |
get-type-info <N> |
domain/data element with resolved_as |
scalar |
get-transaction <CODE> |
package/application/facets | scalar |
search-object "<PATTERN>" [--max-results N] |
wildcard search (*) |
objects |
get-package <N> |
package contents | objects |
where-used <TYPE> <N> [--group G] [--max-results N] [--depth 1..5] [--max-nodes N] |
static references; depth greater than 1 adds a bounded deduplicated graph, gaps exit 1; never proves dynamic impact completeness | objects |
syntax-check <TYPE> <N> [--group G] |
findings; hard errors exit 1, warnings exit 0 | findings |
run-unit-test [N...] [--type T] [--package P] [--transport T] [--recursive] [--max-objects N] [--risk-level harmless|dangerous|critical|all] [--duration short|medium|long|all] [--junit F] [--dry-run] [--expect-plan-sha256 H] [--yes] [--fail-on error|warning|info|never] [--require-tests] |
repeatable risk/duration sets in one request per object; explicit names OR package OR TR/tasks; aggregate real method evidence/JUnit; no-tests is not passed | findings |
unit skeleton |
NAME —output-file F; local intentionally failing ABAP Unit template; no SAP writes or invented business assertions | scalar |
run-atc <N> [--type T] [--variant V] [--fail-on …] |
Static ATC checks (no gate); stable check_id/message_id, priority 1/2/3→error/warning/info; exempted findings auditable but never fail |
findings |
quality-check <N> |
—type/—group/—variant, repeated —engine syntax|atc|abaplint, —fail-on error|warning|info, optional —output-file NEW.zip; SAP checks by default, supplied abaplint report/manifest opt in; incomplete engines never pass | findings |
run-sql "<SELECT>" [--max-rows N] |
Open SQL preview; SELECT only; --max-rows (rowNumber) is the hard cap and overrides SQL UP TO N ROWS — conflicts flagged in meta.row_limit_conflict |
rows |
config-data read |
NAME [—kind table|view] [—filter FIELD=VALUE] [—column FIELD] [—max-rows 1..1000] [—output-file NEW.json]; one active table or database/projection view, private snapshot; maintenance/help views refused | rows |
config-data compare |
NAME —from-profile A —to-profile B, same selection options plus repeated —key FIELD and —include-client; key-based schema/data comparison, DDIC CLNT normalized by default, partial/non-unique evidence never proves equality or absence | scalar |
list-transports [--user U] [--status D|R] |
transport tree (read-only) | records |
write-source <TYPE> <N> --file F [--part P] [--create-part] [--check-before-write] [--group G] [--transport T] [--activate] [--dry-run] [--expect-baseline-sha256 H] [--expect-content-sha256 H] [--expect-plan-sha256 H] [--yes] |
baseline→diff/confirm→parent LOCK→baseline re-check→optional candidate check/include generation→PUT/readback→UNLOCK→optional parent activation/readback; non-main —yes also requires the plan hash | write |
activate <TYPE> <N> [--group G] [--yes] |
?method=activate; no lock/shared session needed, succeeds in a separate process (real-verified Basis 7.56) |
gated |
create-transport --package P --description D --ref URI [--yes] |
CreateCorrectionRequest ASX (DEVCLASS+REF required, $TMP=local); real-verified Basis 7.56, 2026-09-17 |
gated |
release-transport <TRKORR> [--dry-run] [--yes] |
release with TRSTATUS readback (2s poll, 120s); dry-run = preflight only | gated |
transport ping|collect |
transport utilities (read-only): ping = ADT connectivity (plain text); collect = TR object list + sources into review_package/ (manifest schema unchanged from tr_collector; --legacy-config explicitly opts into the old plaintext collector config — never implicit) |
— |
Unit risk levels:
dangerous/criticaltests execute ABAP that may modify business data — CLI 1.6.5+ requires independentallow_execute(notallow_write), a risk/object/data-change warning in[y/N], and hard-refusesenvironment=prd.--yesrequires the reviewed plan hash. EmptyrunResult→ok:true, no_tests_found:true, total:0(same for an alert-only defective test class, with warning findings).okmeans the request was parsed, not that tests passed. Inspectdata.summary.status; class setup failures can occur with zero methods. Partial evidence exits 1 even with--fail-on never. Default empty-run exit 0 remains compatible;--require-testsopts into exit 1.
Unit adds --coverage-file F, --min-coverage 0..100 and --bundle NEW.zip.
The result includes data.gate and data.coverage; missing required coverage
fails closed. Coverage is NOT inferred from passing tests or ADT API coverage.
Supplied line coverage must contain schema_version:1, target_fingerprint
(from JSON status) and files entries with same-target source uri,
canonical source_sha256, executable_lines and covered_lines arrays.
Each file must belong to a selected Unit container and match current source.
Percentages and thresholds apply only to supplied files; the CLI does not
attest measurement authenticity or full-scope/native SAP instrumentation.
Bundle paths, supplied report hashes and thresholds bind the reviewed Unit plan.
Bundles contain a hash manifest, results, JUnit, coverage and gate; existing
files are never overwritten. Missing native coverage is explicit evidence,
not zero percent or a passing threshold.
Quality abaplint import requires both --abaplint-report (native CLI JSON
issue array) and --abaplint-manifest. The manifest declares schema_version:1,
completed:true, positive files_checked, engine_version, source_file,
target_fingerprint, the current canonical source_sha256 and object_uri,
and report_sha256 of UTF-8 json.dumps(report, ensure_ascii=False, indent=2)
plus LF. Issues must belong to that one source file. Bindings are verified,
but external measurement execution/authenticity is caller-supplied, not attested.
No abaplint download, install or arbitrary subprocess is performed.
Git mapping JSON: {"schema_version":1,"transport":"DEVK900001","objects":[{"pgmid":"R3TR","type":"CLAS","name":"ZCL_A","files":["src/zcl_a.clas.abap"]}]}.
The map is caller-supplied, not inferred from names/history. Offline membership
is explicitly unverified (partial/exit 1). --verify-transport checks current
request/task membership using the selected SAP connection. Commit exports use
that commit’s blobs/config; otherwise exports use working-tree bytes, not staged
blobs. Missing/deleted file content is a gap, never an empty source. No remote
abapGit endpoint is guessed or ordinary ADT source relabelled as its serialization.