@sapse/business-application-studio-extension-management
v1.2.0
Published
Command Line Interface for SAP Business Application Studio Extension Management
Downloads
69,478
Readme
SAP Business Application Studio Extension Management
@sapse/business-application-studio-extension-management is a command-line interface (CLI) for deploying simple extensions to SAP Business Application Studio Extension Management.
Prerequisites
- A maintained Node.js version.
Installation
test
Run the following command in your terminal:
npm install -g @sapse/business-application-studio-extension-management
Deploying Your Extension from SAP Business Application Studio
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.
Deploying Your Extension from a Continuous Integration (CI) Environment
When deploying from a Continuous Integration (CI) environment, credentials can be configured using the following environment variables:
- WING_USER
- WING_PASSWORD
Notes
- 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.
Extension File
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 Extension Command
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>