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.3.6

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 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) |

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.

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