npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@abapify/adt-cli

v0.4.10

Published

Command-line interface for SAP ABAP Development Tools — the adt binary, plus plugin loader and top-level service layer

Readme

@abapify/adt-cli

version

Command-line interface for SAP ABAP Development Tools (ADT) REST APIs.

Part of the abapify monorepo.

Installation

npm install -g @abapify/adt-cli

Or run without installing:

npx @abapify/adt-cli <command>

Quick Start

# Authenticate with a BTP service key
adt auth login --file ./service-key.json

# Discover available ADT services
adt discovery

# List transport requests
adt transport list

# Get object details
adt get ZCL_MY_CLASS --properties

# Show object structure as a tree
adt outline ZIF_MY_INTERFACE

# Import a package from SAP to local files
adt import package ZTEST_PKG

# Export local files back to SAP
adt export package ZTEST_PKG ./abapgit-ztest_pkg --create --transport NPLK900123

Commands

Authentication

adt auth login --file <path>

Authenticate using a BTP service key file (OAuth 2.0 + PKCE).

adt auth login --file ./secrets/service-key.json

Service key format:

{
  "clientid": "...",
  "clientsecret": "...",
  "url": "https://your-btp-instance.cfapps.eu10.hana.ondemand.com",
  "endpoints": {
    "abap": "https://your-abap-system.cfapps.eu10.hana.ondemand.com"
  },
  "uaadomain": "authentication.eu10.hana.ondemand.com"
}

Tokens are stored in ~/.config/adt-cli/ (Linux/macOS) or %APPDATA%/adt-cli/ (Windows).

adt auth logout

Clear stored authentication tokens.

Service Discovery

adt discovery [options]

List available ADT services and endpoints.

| Option | Description | | --------------------- | --------------------------------------------------------- | | -o, --output <file> | Save output — .xml for raw XML, .json for parsed JSON |

adt discovery
adt discovery -o services.json

Package Import / Export

adt import package <packageName> [targetFolder] [options]

Download an ABAP package from SAP to local files.

| Option | Description | | ---------------------------- | --------------------------------------- | | -o, --output <path> | Output directory | | -t, --object-types <types> | Comma-separated types, e.g. CLAS,INTF | | --sub-packages | Include subpackages | | --format <format> | abapgit (default) | | --debug | Debug output |

adt import package ZTEST_PKG
adt import package ZTEST_PKG --object-types CLAS,INTF --format abapgit

adt export package <packageName> [sourceFolder] [options]

Deploy local files to SAP.

| Option | Description | | ---------------------------- | ---------------------------------- | | -i, --input <path> | Input directory | | -t, --object-types <types> | Filter by type | | --transport <request> | Transport request | | --create | Apply changes (default is dry run) | | --debug | Debug output |

# Dry run
adt export package ZTEST_PKG ./abapgit-ztest_pkg

# Deploy with transport
adt export package ZTEST_PKG ./abapgit-ztest_pkg --create --transport NPLK900123

Object Inspection

adt get <object> [options]

Get details about an ABAP object. Supported types: CLAS, INTF, DEVC.

| Option | Description | | --------------------- | ------------------------------------------------ | | --source | Show source code preview | | --structure | Show object structure | | --properties | Show package hierarchy and application component | | --json | JSON output | | -o, --output <file> | Save ADT XML to file |

adt get ZCL_MY_CLASS
adt get ZCL_MY_CLASS --properties
adt get ZCL_MY_CLASS -o tmp/class.xml

adt check <object...> [options]

Run SAP ADT syntax checks. Existing objects are checked using their inactive source by default; select another source explicitly with --source-version active|inactive|new. The name avoids colliding with the root adt --version flag.

With --json, stdout contains only the report array. SAP error/abort messages (E/A) keep that JSON readable and set a non-zero process exit status.

adt check ZCL_MY_CLASS --type CLAS
adt check ZCL_MY_CLASS --type CLAS --source-version active --json

adt outline <object>

Show object structure as a tree (methods, attributes, visibility).

ℹ️  ZIF_MY_INTERFACE [interface]
├─ 🟢  GET_DATA [public method]
└─ 🔴  INTERNAL_HELPER [private method]

Transport Requests

adt transport has adt tr as an alias.

adt transport list [options]

| Option | Description | | ----------------------- | -------------------------- | | -u, --user <user> | Filter by user | | -s, --status <status> | modifiable or released | | -m, --max <n> | Max results (default: 50) |

adt transport get <tr-number> [options]

Get details for a transport request or task.

| Option | Description | | --------- | -------------------- | | --tasks | Include task details | | --json | JSON output |

adt transport create [options]

| Option | Description | | -------------------------- | --------------------------------------------- | | -d, --description <desc> | Description (required) | | -t, --type <type> | K (Workbench, default) or W (Customizing) | | --target <target> | Target system (default: LOCAL) |

adt cts tr task create <transport> <owner> [options]

Create a modifiable task under an existing request and verify the new task by reading the parent request back from SAP.

adt cts tr task create DEVK900001 DEVELOPER
adt cts tr task create DEVK900001 DEVELOPER --json

| Option | Description | | -------- | --------------------- | | --json | JSON result on stdout |

Exact source history

Source-history commands follow immutable links returned by SAP ADT. Listing versions and building a manifest return metadata and provenance only; ABAP source is downloaded only by the explicit source version get command.

# List every source component and its immutable version metadata
adt source versions ZCL_MY_CLASS --type CLAS --json

# Restrict the listing to one exact component id
adt source versions ZCL_MY_CLASS --type CLAS \
  --component implementations --json

# Read one immutable version to stdout or a file
adt source version get --uri /sap/bc/adt/.../versions/2 --output -
adt source version get --uri /sap/bc/adt/.../versions/2 --output before.abap

# Build one metadata-only manifest for an ordered transport set
adt cts tr source-manifest DEVK900001,DEVK900002 --json
adt cts tr source-manifest DEVK900001 \
  --also-transport DEVK900002,DEVK900003 --json

Each manifest component has an explicit state:

| State | Meaning | | ------------- | ----------------------------------------------------------- | | added | Exact in-scope head exists and has no older base | | modified | Exact base and head were selected | | deleted | CTS marks deletion and an exact recoverable base exists | | unchanged | No source change is represented | | ambiguous | Provenance or ordering cannot prove an isolated exact delta | | unsupported | SAP metadata exposes no usable versioned source component | | failed | SAP rejected metadata/history retrieval for the component |

ambiguous and unsupported are explicit non-exact results and leave the command successful. If any entry is failed, the complete manifest is still printed and the command exits non-zero. Structured output and diagnostics never contain credentials or source bodies.

Configuration

Create adt.config.ts in your project root for TypeScript configuration with full type checking:

import type { CliConfig } from '@abapify/adt-cli/config/interfaces';

const config: CliConfig = {
  auth: {
    type: 'btp',
    btp: {
      serviceKey: process.env.BTP_SERVICE_KEY_PATH || './service-key.json',
    },
  },
  defaults: {
    format: 'abapgit',
    outputPath: './output',
  },
};

export default config;

YAML is also supported (adt.config.yaml).

Logging

# Set log level
ADT_LOG_LEVEL=debug adt discovery

# Enable verbose mode
adt transport list --verbose

# Filter log components
ADT_LOG_COMPONENTS=auth,http adt auth login --file service-key.json

Available log levels: trace, debug, info, warn, error, fatal.

For SAP operations that legitimately take longer than the native HTTP client's response-header timeout, set a positive millisecond value:

ADT_HEADERS_TIMEOUT_MS=900000 adt aunit --transport NPLK900042

Leave the variable unset (or set it to an empty string) for the native default — both are treated equivalently. Invalid, zero, or fractional values fail before the request is sent.

Command Reference

| Command | Description | | ----------------------------------- | --------------------------------- | | adt auth login --file <path> | Authenticate with BTP service key | | adt auth logout | Clear stored tokens | | adt discovery | List available ADT services | | adt discovery -o file.json | Export services as JSON | | adt get <object> | Get ABAP object details | | adt get <object> --properties | Show package and component info | | adt get <object> -o file.xml | Save ADT XML to file | | adt outline <object> | Show object tree structure | | adt import package <pkg> | Import package from SAP | | adt export package <pkg> --create | Deploy files to SAP | | adt transport list | List transport requests | | adt transport get <TR> | Get transport or task details | | adt transport create -d "DESC" | Create new transport request |

Architecture

adt-cli (Commander.js, plugin loader)
  ├── adt-client   (HTTP + auth interceptor)
  │     └── adt-contracts + adt-schemas
  ├── adk          (ABAP object parsing)
  ├── adt-auth     (session management)
  └── plugins      (adt-atc, adt-export, adt-plugin-abapgit)

License

MIT