Adaptation Project Command-line Interface
Command-line interface that allows user to deploy or undeploy an adaption project.
Usage
npm install -g @sap/adp-cli
In your terminal run adp
to see all available options and commands (adp abap-deploy
, adp abap-undeploy
).
For the correct usage of each command add -h
or --help
. This will print all the options the command accepts.
Example:
Usage: adp abap-deploy [options]
-ap, --abap-package <abap_package> Package name
-at, --abap-transport [abap_transport] Transport request number
-dn, --destination-name <destination_name> Destination name
-u, --username [username] Username
-p, --password [password] Password
-h, --help display help for command
Options that are surrounded by arrows are required, the ones in square brackets are optional.
If the project is local pass '$TMP' with single quotes or "\$TMP" with double quotes and a slash instead of $TMP, then you can omit -at, --abap-transport
parameter.
Installation (development purposes only)
- Open your SAP BAS instance.
- Create a new Basic dev space.
- Open the folder
home/user/projects
in a terminal and git clone
this repository (for issues with user authentication see BAS help on Connect to Your Git Source Control System. - Go into your repo in the terminal and run
npm i
. - Navigate to directory packages/adp-cli with
cd packages/adp-cli
. - Run
npm run setup
to build and link the command.
Known issues
- When building the adp cli for the first time and executing the command you may come across the following error:
bin/adp: Permission Denied
.
Run yarn chmod
to make the command executable.