Adaptation Project CLI
npm install @sap/adp-cliCommand-line interface that allows user to deploy (update) or undeploy an Adaptation Project.
``shell`
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
-at, --abap-transport [abap_transport] Transport request number
-dn, --destination-name [destination_name] Destination name
-su, --system-url [system_url] System URL
-cl, --client [client] Client
-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.
You _can use_ the command on SAP Business Application Studio with either [destination_name] or [system_url] & [client] parameters (the latter requires you to pass credentials). NOTE: You cannot use both at the same time.
`bashabap-deploy with $TMP package
$ adp abap-deploy --abap-package '$TMP' --destination-name DEST_NAME
Usage on VSCode
You _can only use_ the command on VSCode (or in you CI/CD pipelines) using the following parameters, example:
`bash
abap-deploy with system url & client
adp abap-deploy --abap-package ABAP_PKG --abap-transport ABAP_TRANSPORT --system-url https://SYSTEM_URL.sap --client XXX --username USERNAME --password PASSWORDabap-undeploy with system url & client
adp abap-undeploy --abap-package ABAP_PKG --abap-transport ABAP_TRANSPORT --system-url https://SYSTEM_URL.sap --client XXX --username USERNAME --password PASSWORD
``