Skip to main content

A command-line tool for SAP BTP Inegration Suite

Project description

btpis

btpis is a command-line tool for working with SAP BTP Integration Suite artifacts from the terminal. It provides a lightweight workflow for configuring OAuth credentials, listing integration packages and flows, retrieving flow details, deploying integration flows, and viewing logs.

Features

  • Configure and manage OAuth profiles for SAP BTP Integration Suite
  • List packages, integration flows, service endpoints, and configurations
  • Retrieve detailed information about a single integration flow
  • Deploy a single integration flow or a batch from a CSV file
  • View recent or streamed integration flow logs

Requirements

Before using the CLI, make sure you have:

  • Node.js 18+ and npm
  • Access to an SAP BTP Integration Suite environment with valid OAuth credentials

Installation

From npm

The package is published to npm, you can install it with:

npm install -g btpis@latest

Configuration

The CLI stores OAuth configuration in a JSON file under your user config directory. You can create a profile from a JSON file containing the required properties.

Example profile file:

{
  "createdate": "2026-01-01",
  "clientid": "your-client-id",
  "clientsecret": "your-client-secret",
  "tokenurl": "https://example.authentication.us10.hana.ondemand.com/oauth/token",
  "url": "https://example.it-cpna.ondemand.com"
}

Create and register a profile:

btpis config set dev ./oauth-config.json

List configured profiles:

btpis config list

Set a default profile:

btpis config set-default dev

Usage

1. List packages and integration flows

btpis list packages
btpis list iflows --all
btpis list service-endpoints
btpis list configurations

2. Get details for an integration flow

btpis get iflow <id> <version>

Example:

btpis get iflow MyFlow 1.0

Include configuration parameters and resources:

btpis get iflow MyFlow 1.0 --configurations --resources

3. Deploy an integration flow

Deploy a single integration flow:

btpis deploy iflow <id> <version>

Example:

btpis deploy iflow MyFlow 1.0

Deploy a batch from CSV:

btpis deploy bulk ./deploy.csv

Example CSV:

id,version
MyFlow,1.0
AnotherFlow,2.3

4. View logs

Show the most recent log entries:

btpis logs

Show logs for a specific integration flow:

btpis logs MyFlow --tail 50

Show logs from a relative time range:

btpis logs MyFlow --since 1h

Follow logs continuously:

btpis logs MyFlow --follow

Build and release

Build the native binary for the current platform

npm run build:native

Build for specific targets

npm run build:windows
npm run build:linux
npm run build:macos

Build all supported targets

npm run build:all-platforms

Release workflow

npm run release

This runs version sync, builds the Windows artifact, and publishes the package.

Project structure

  • cli/ contains the Rust CLI implementation
  • bin/ contains the Node wrapper and bundled native binaries
  • scripts/ contains helper scripts for version sync and install-time behavior
  • docker/ contains build containers for cross-platform builds

Troubleshooting

  • If the CLI cannot find the native binary, rebuild it with npm run build:native.
  • If authentication fails, verify the profile JSON and the SAP BTP OAuth endpoint values.
  • If deployment requests are rejected, confirm that the integration flow ID and version are valid for the target environment.

License

This project is licensed under the Apache 2.0 License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

btpis-0.1.0-py3-none-win_amd64.whl (3.2 MB view details)

Uploaded Python 3Windows x86-64

File details

Details for the file btpis-0.1.0-py3-none-win_amd64.whl.

File metadata

  • Download URL: btpis-0.1.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for btpis-0.1.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 5c8e31a8f9faa1f1a90819faf186ca897b35c1de0deb7e75211443e16a0d3713
MD5 68010a3a9ed8e97d73e1e6fc7e7d1c70
BLAKE2b-256 ede4d32489b25cd98105951856d2fbb2c1f5bc3a994b12eb73b3910c108d00d9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page