@sapse/business-application-studio-extension-management is a command-line interface (CLI) for deploying simple extensions to SAP Business Application Studio Extension Management.
- A maintained Node.js version.
test
Run the following command in your terminal:
npm install -g @sapse/business-application-studio-extension-management
When deploying an extension from SAP Business Application Studio, you don't need to enter your dev space credentials or environment. The CLI deploys the extension to your SAP Business Application Studio subaccount if you are logged in. You must have an extension deployer role.
When deploying from a Continuous Integration (CI) environment, credentials can be configured using the following environment variables:
- WING_USER
- WING_PASSWORD
- It is highly recommended to work with a technical user in a CI environment.
- If the user profile requires two-factor authentication, open wex from your SAP Business Application Studio dev space or enter the credentials of a technical user.
Create an extension file. For example, "simple-extension.json"::
{
"apiVersion": "1",
"name": "extension-test",
"version": "0.0.1",
"yeomanPackages": [
{
"name": "generator-jhipster",
"versionRange": "6.2.0"
}
],
"vscodeExtensions": [
{
"name": "vscode-prettier",
"versionRange": "2.3.5",
"source": "npm"
}
]
}
Deploy the extension based on the "extension.json" file:
wex deploy -e <SAP Business Application Studio host>
Deploy a specific extension file:
wex deploy -e <SAP Business Application Studio host> -f <path to extension file>
Deploy with verbose:
wex deploy -e <SAP Business Application Studio host> -f <path to extension file> --verbose
Deploy the specific extension file to your subaccount from your SAP Business Application Studio dev space:
wex deploy -f <path to extension file>