mcpField
S
sap-fiori-create-cli

sap-fiori-create-cli

github.com/sapDevelopment160593 installsUpdated today
Repository

About sap-fiori-create-cli

A command-line toolkit for SAP Fiori developers to generate, configure, convert, and migrate projects. Its commands cover adaptation projects, tests, deployment settings, and saved backend systems.

Key features

  1. 01Generate adaptation projects and OPA5 tests
  2. 02Add application configuration and capabilities
  3. 03Convert preview and ESLint configurations
  4. 04Migrate legacy WebIDE projects
  5. 05Manage saved backend systems

Use cases

  1. 01Generate OPA5 tests for an existing Fiori elements app
  2. 02Configure local OData mocking for a project
  3. 03Migrate a legacy WebIDE project to Fiori tools
  4. 04Refresh an app's OData service metadata

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/sap/open-ux-tools --skill sap-fiori-create-cli

After installing, type/sap-fiori-create-cliin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
add.md
change.md
convert-preview-config.md
convert.md
generate.md
get.md
list.md
migrate.md
remove.md
update-service-metadata.md
update.md

Details

From the project README

How to use this CLI

  • Always invoke via npx -y @sap-ux/create@latest — never suggest a global install.
  • Run with --simulate / -s first for any write command when the user has not confirmed they want files changed. It implies --verbose on most subcommands.
  • Pass passwords via --password env:MY_VAR — never plain-text in the shell command.
  • Commands that prompt interactively (generate adaptation-project, add model, add component-usages) require either -y / --yes or all required flags pre-filled to run non-interactively.
  • add annotations, change data-source, and change inbound are not supported for Cloud Foundry projects.
  • add adp-cf-config is experimental and may change or be removed without notice.

Commands

generate

Command group for generating SAP Fiori applications. A subcommand is required.

SubcommandDescription
adaptation-projectGenerate a new SAPUI5 adaptation project with optional prompts and configuration.
opa5-testsGenerate OPA5 integration tests for an existing SAP Fiori elements (OData V4) application.

Full options and flags: references/generate.md


add

Command group for adding features to existing SAP Fiori applications. A subcommand is required.

SubcommandDescription
mockserver-configAdd the necessary configuration for the @sap-ux/ui5-middleware-fe-mockserver mockserver module to enable local OData mocking.
smartlinks-configAdd a smartLinks configuration to a project for cross-app navigation.
eslint-configAdd an ESLint configuration to a project including the SAP Fiori tools lint plugin (@sap-ux/eslint-plugin-fiori-tools).
cds-plugin-ui5Add the cds-plugin-ui5 module and all prerequisites to a CAP project for UI5 server integration.
inbound-navigationAdd SAP Fiori launchpad inbound navigation configuration to a project.
cards-editorAdd the necessary configuration to an existing YAML file and the script to the package.json file for cards generation. It uses the configuration from the YAML file passed by the CLI or default to ui5.yaml, as provided by the fiori-tools-preview or preview-middleware.
modelAdd a new OData service and SAPUI5 model to an existing adaptation project.
annotationsAdds an annotation to the OData Source of the base application in an adaptation project.
htmlAdd HTML files for local preview and testing to the project. It uses the configuration from the ui5.yaml file as default, as provided by the fiori-tools-preview or preview-middleware.
component-usagesAdd the component usages to an adaptation project.
deploy-configPrompt for ABAP deployment configuration details and adds and updates the project files accordingly.
variants-configAdd the necessary configuration to an existing YAML file and the script to the package.json file for variants creation. It uses the configuration from the YAML file passed by the CLI or default to ui5.yaml, as provided by the fiori-tools-preview or preview-middleware.
adp-cf-configConfigure an existing Cloud Foundry adaptation project for local preview by fetching reusable libraries, building the project, and configuring ui5.yaml file middlewares.
systemAdd a new back-end system to the saved systems store (~/.fioritools). Credentials are stored securely in the OS keychain.
flp-embedded-configAdd the necessary configuration for running a Fiori app in FLP Embedded Mode.

Full options and flags: references/add.md


convert

Command group for converting existing SAP Fiori applications. A subcommand is required.

SubcommandDescription
preview-configExecuted in the root folder of an app, it converts the respective app to the preview with virtual endpoints. It uses the configuration from the scripts in the package.json file to adjust the UI5 configuration YAML files accordingly. The obsolete JS and TS sources are deleted and the HTML files previously used for the preview are renamed to *_old.html.
eslint-configExecuted in the root folder of an app, it converts the ESLint configuration of the respective app to flat config format (used since ESLint version 9). It also introduces specific ESLint checks for SAP Fiori applications (using the @sap-ux/eslint-plugin-fiori-tools plugin), and deletes the deprecated eslint-plugin-fiori-custom plugin. To avoid dependency resolution conflicts, it deletes the package-lock.json file as well as the @sap-ux/eslint-plugin-fiori-tools module from the node_modules folder before running npm install.

Full options and flags: references/convert.md


remove

Command group for removing features from existing SAP Fiori applications. A subcommand is required.

SubcommandDescription
mockserver-configRemoves the configuration for the @sap-ux/ui5-middleware-fe-mockserver mockserver module.
systemRemove a saved back-end system from the saved system store (~/.fioritools). Also deletes any stored credentials in the OS keychain.

Full options and flags: references/remove.md


update

Command group for updating saved resources. A subcommand is required.

SubcommandDescription
systemUpdate an existing backend system in the saved systems store (~/.fioritools). The system is identified by its URL and optional SAP client.
service-metadataRefresh the local OData service metadata.xml from the live backend for a Fiori application.

Full options and flags: references/update.md


change

Command group for changing existing SAP Fiori applications. A subcommand is required.

SubcommandDescription
data-sourceReplace the OData Source of the base application in an adaptation project.
inboundReplace the inbound FLP configurations of the base application in an adaptation project.

Full options and flags: references/change.md


list

Command group for listing saved resources. A subcommand is required.

SubcommandDescription
systemList all back-end systems in the saved system store (~/.fioritools). Sensitive data, such as passwords and tokens, is never included in the output.

Full options and flags: references/list.md


get

Command group for retrieving saved resources. A subcommand is required.

SubcommandDescription
systemRetrieve details of a saved back-end system by URL. Sensitive data (passwords, tokens) is never included in the output.

Full options and flags: references/get.md


migrate

Migrate legacy WebIDE Fiori project to modern Fiori tools format. In BAS, a destination is required. Outside BAS, hostname and client are required; destination is optional.

OptionDescription
-d, --destination <name>SAP System destination name (required in BAS)
-s, --sap-system-name <name>SAP System name (alias for destination)
-H, --hostname <host>Backend hostname (required outside BAS unless resolved from a saved system)
-c, --client <client>SAP Client (required outside BAS unless resolved from destination or saved system)
-u, --ui5-version <version>UI5 version (defaults to source project version)
-f, --forceForce migration even if project is already a Fiori tools project
-n, --skip-installSkip the npm install step after migration

Full options and flags: references/migrate.md

Comments

Markdown supported