Skip to main content

adt ls

List ABAP objects in the repository (format-aware: abapGit, AFF/gCTS). By default, scans the current directory for serialised objects; with --dir, the scan root can be changed. When no directory is supplied, ls falls back to a live SAP listing.

Options

FlagDescription
--jsonOutput as JSON.
-t, --type <types>Filter by object type (comma-separated, e.g. CLAS,INTF).
-o, --output <file>Write output to file.
-d, --dir <directory>Directory to scan (default: current directory).

Examples

# List the current checkout
adt ls

# Only classes and interfaces in a sibling repo
adt ls -d ../another-repo -t CLAS,INTF

# JSON, filter and save
adt ls -t DDLS,DCLS --json -o cds-objects.json

See also

  • checkout / import — produce the directory structure that ls reads
  • search — search SAP directly