sap-fiori-create-cli
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseHow to use this CLI
如何使用此CLI
- Always invoke via — never suggest a global install.
npx -y @sap-ux/create@latest - Run with /
--simulatefirst for any write command when the user has not confirmed they want files changed. It implies-son most subcommands.--verbose - Pass passwords via — never plain-text in the shell command.
--password env:MY_VAR - Commands that prompt interactively (,
generate adaptation-project,add model) require eitheradd component-usages/-yor all required flags pre-filled to run non-interactively.--yes - ,
add annotations, andchange data-sourceare not supported for Cloud Foundry projects.change inbound - is experimental and may change or be removed without notice.
add adp-cf-config
- 始终通过调用——切勿建议全局安装。
npx -y @sap-ux/create@latest - 当用户尚未确认要修改文件时,所有写入类命令都应先使用/
--simulate参数运行。该参数在大多数子命令中会自动启用-s模式。--verbose - 通过传递密码——绝对不要在shell命令中使用明文密码。
--password env:MY_VAR - 交互式提示的命令(、
generate adaptation-project、add model)需要添加add component-usages/-y参数,或者预先填充所有必填参数才能以非交互式模式运行。--yes - 、
add annotations和change data-source命令不支持Cloud Foundry项目。change inbound - 为实验性功能,可能会随时更改或移除,恕不另行通知。
add adp-cf-config
Command group for generating SAP Fiori applications. A subcommand is required.
Usage:
npx --yes @sap-ux/create@latest generate [subcommand] [options]The available subcommands are:
adaptation-project用于生成SAP Fiori应用的命令组,必须指定子命令。
用法:
npx --yes @sap-ux/create@latest generate [subcommand] [options]可用子命令:
adaptation-projectGenerate a new SAPUI5 adaptation project with optional prompts and configuration.
Example:
npx --yes @sap-ux/create@latest generate adaptation-projectOptions:
- - Skip the
-n, --skip-installstep.npm install - - Simulate only. Do not write or install.
-s, --simulate - - Use default values for all prompts.
-y, --yes - - The ID of the adaptation project.
--id [id] - - The ID of the original application.
--reference [reference] - - The URL that points to the target system which contains the original application.
--url [url] - - Ignore certificate errors when connecting to the target system.
--ignoreCertErrors - - Enable SAP Fiori tools for the generated project.
--ft - - Enable TypeScript support for the generated project.
--ts - - The ABAP package to be used for deployments.
--package [package] - - The ABAP transport to be used for deployments.
--transport [transport]
生成新的SAPUI5适配项目,支持可选提示和配置。
示例:
npx --yes @sap-ux/create@latest generate adaptation-project选项:
- - 跳过
-n, --skip-install步骤。npm install - - 仅模拟操作,不写入文件或执行安装。
-s, --simulate - - 所有提示均使用默认值。
-y, --yes - - 适配项目的ID。
--id [id] - - 原始应用的ID。
--reference [reference] - - 指向包含原始应用的目标系统的URL。
--url [url] - - 连接目标系统时忽略证书错误。
--ignoreCertErrors - - 为生成的项目启用SAP Fiori tools。
--ft - - 为生成的项目启用TypeScript支持。
--ts - - 部署时使用的ABAP包。
--package [package] - - 部署时使用的ABAP传输请求。
--transport [transport]
Command group for adding features to existing SAP Fiori applications. A subcommand is required.
Usage:
npx --yes @sap-ux/create@latest add [subcommand] [options]The available subcommands are: , , , , , , , , , , , , , and
mockserver-configsmartlinks-configeslint-configcds-plugin-ui5inbound-navigationcards-editormodelannotationshtmlcomponent-usagesdeploy-configvariants-configadp-cf-configsystemflp-embedded-config用于为现有SAP Fiori应用添加功能的命令组,必须指定子命令。
用法:
npx --yes @sap-ux/create@latest add [subcommand] [options]可用子命令:、、、、、、、、、、、、、和
mockserver-configsmartlinks-configeslint-configcds-plugin-ui5inbound-navigationcards-editormodelannotationshtmlcomponent-usagesdeploy-configvariants-configadp-cf-configsystemflp-embedded-configAdd the necessary configuration for the mockserver module to enable local OData mocking.
@sap-ux/ui5-middleware-fe-mockserverExample:
npx --yes @sap-ux/create@latest add mockserver-configOptions:
- - Ask for config options or otherwise, use the default options.
-i, --interactive - - Skip the
-n, --skip-installstep.npm install - - Simulate only. Do not write or install. Also, sets
-s, --simulate--verbose - - Show verbose information.
-v, --verbose
添加模拟服务器模块的必要配置,以启用本地OData模拟。
@sap-ux/ui5-middleware-fe-mockserver示例:
npx --yes @sap-ux/create@latest add mockserver-config选项:
- - 询问配置选项,否则使用默认选项。
-i, --interactive - - 跳过
-n, --skip-install步骤。npm install - - 仅模拟操作,不写入文件或执行安装,同时启用
-s, --simulate模式。--verbose - - 显示详细信息。
-v, --verbose
Add a configuration to a project for cross-app navigation.
smartLinksExample:
npx --yes @sap-ux/create@latest add smartlinks-configOptions:
- - Simulate only. Do not write to the config file. Also, sets
-s, --simulate--verbose - - Show verbose information.
-v, --verbose
为项目添加配置以支持跨应用导航。
smartLinks示例:
npx --yes @sap-ux/create@latest add smartlinks-config选项:
- - 仅模拟操作,不写入配置文件,同时启用
-s, --simulate模式。--verbose - - 显示详细信息。
-v, --verbose
Add an ESLint configuration to a project including the SAP Fiori tools lint plugin ().
@sap-ux/eslint-plugin-fiori-toolsExample:
npx --yes @sap-ux/create@latest add eslint-configOptions:
- - Simulate only. Do not write to the config file. Also, sets
-s, --simulate--verbose - - Show verbose information.
-v, --verbose - - The name of the SAP Fiori tools eslint plugin configuration to be used. (default:
-c, --config <string>)recommended - - Skip the
-n, --skip-installstep.npm install
为项目添加ESLint配置,包括SAP Fiori tools lint插件()。
@sap-ux/eslint-plugin-fiori-tools示例:
npx --yes @sap-ux/create@latest add eslint-config选项:
- - 仅模拟操作,不写入配置文件,同时启用
-s, --simulate模式。--verbose - - 显示详细信息。
-v, --verbose - - 使用的SAP Fiori tools eslint插件配置名称。(默认值:
-c, --config <string>)recommended - - 跳过
-n, --skip-install步骤。npm install
Add the module and all prerequisites to a CAP project for UI5 server integration.
cds-plugin-ui5Example:
npx --yes @sap-ux/create@latest add cds-plugin-ui5Options:
- - Skip the
-n, --skip-installstep.npm install - - Simulate only. Do not write or install. Also, sets
-s, --simulate--verbose - - Show verbose information.
-v, --verbose
为CAP项目添加模块及所有前置依赖,以实现UI5服务器集成。
cds-plugin-ui5示例:
npx --yes @sap-ux/create@latest add cds-plugin-ui5选项:
- - 跳过
-n, --skip-install步骤。npm install - - 仅模拟操作,不写入文件或执行安装,同时启用
-s, --simulate模式。--verbose - - 显示详细信息。
-v, --verbose
Add SAP Fiori launchpad inbound navigation configuration to a project.
Example:
npx --yes @sap-ux/create@latest add inbound-navigationOptions:
- - Simulate only. Do not write to the config file. Also, sets
-s, --simulate--verbose - - Show verbose information.
-v, --verbose - - Path to the project configuration file in YAML format. (default:
-c, --config <string>)ui5.yaml
为项目添加SAP Fiori launchpad入站导航配置。
示例:
npx --yes @sap-ux/create@latest add inbound-navigation选项:
- - 仅模拟操作,不写入配置文件,同时启用
-s, --simulate模式。--verbose - - 显示详细信息。
-v, --verbose - - YAML格式的项目配置文件路径。(默认值:
-c, --config <string>)ui5.yaml
Add the necessary configuration to an existing YAML file and the script to the file for cards generation. It uses the configuration from the YAML file passed by the CLI or default to , as provided by the or .
package.jsonui5.yamlfiori-tools-previewpreview-middlewareExample:
npx --yes @sap-ux/create@latest add cards-editorOptions:
- - Path to the project configuration file in YAML format. (default:
-c, --config <string>)ui5.yaml - - Simulate only. Do not write to the config file. Also, sets
-s, --simulate--verbose - - Show verbose information.
-v, --verbose
为现有YAML文件添加必要配置,并在中添加卡片生成脚本。它使用CLI传入的YAML文件配置,默认使用(由或提供)。
package.jsonui5.yamlfiori-tools-previewpreview-middleware示例:
npx --yes @sap-ux/create@latest add cards-editor选项:
- - YAML格式的项目配置文件路径。(默认值:
-c, --config <string>)ui5.yaml - - 仅模拟操作,不写入配置文件,同时启用
-s, --simulate模式。--verbose - - 显示详细信息。
-v, --verbose
Add a new OData service and SAPUI5 model to an existing adaptation project.
Example:
npx --yes @sap-ux/create@latest add modelOptions:
- - Simulate only. Do not write or install.
-s, --simulate
为现有适配项目添加新的OData服务和SAPUI5模型。
示例:
npx --yes @sap-ux/create@latest add model选项:
- - 仅模拟操作,不写入文件或执行安装。
-s, --simulate
Adds an annotation to the OData Source of the base application in an adaptation project.
This command is not supported for Cloud Foundry projects.
Example:
npx --yes @sap-ux/create@latest add annotationsOptions:
- - Simulate only. Do not write or install.
-s, --simulate - - Path to the project configuration file in YAML format. (default:
-c, --config <string>)ui5.yaml
在适配项目中为基础应用的OData源添加注解。
此命令不支持Cloud Foundry项目。
示例:
npx --yes @sap-ux/create@latest add annotations选项:
- - 仅模拟操作,不写入文件或执行安装。
-s, --simulate - - YAML格式的项目配置文件路径。(默认值:
-c, --config <string>)ui5.yaml
Add HTML files for local preview and testing to the project. It uses the configuration from the file as default, as provided by the or .
ui5.yamlfiori-tools-previewpreview-middlewareExample:
npx --yes @sap-ux/create@latest add htmlOptions:
- - Path to the project configuration file in YAML format. (default:
-c, --config <string>)ui5.yaml - - Simulate only. Do not write to the config file. Also, sets
-s, --simulate--verbose - - Show verbose information.
-v, --verbose
为项目添加用于本地预览和测试的HTML文件。默认使用文件中的配置(由或提供)。
ui5.yamlfiori-tools-previewpreview-middleware示例:
npx --yes @sap-ux/create@latest add html选项:
- - YAML格式的项目配置文件路径。(默认值:
-c, --config <string>)ui5.yaml - - 仅模拟操作,不写入配置文件,同时启用
-s, --simulate模式。--verbose - - 显示详细信息。
-v, --verbose
Add the component usages to an adaptation project.
Example:
npx --yes @sap-ux/create@latest add component-usagesOptions:
- - Simulate only. Do not write or install.
-s, --simulate
为适配项目添加组件引用配置。
示例:
npx --yes @sap-ux/create@latest add component-usages选项:
- - 仅模拟操作,不写入文件或执行安装。 n
-s, --simulate
Prompt for ABAP deployment configuration details and adds and updates the project files accordingly.
Example:
npx --yes @sap-ux/create@latest add deploy-configOptions:
- - Target for deployment: ABAP or Cloud Foundry (not yet implemented)
-t, --target <string> - - Simulate only. Do not write. Also, sets
-s, --simulate--verbose - - Show verbose information.
-v, --verbose - - The base config file of the project. (default: "ui5.yaml")
-b, --base-file <string> - - The name of the deploy config file to be written. (default: "ui5-deploy.yaml")
-d, --deploy-file <string>
提示输入ABAP部署配置详情,并相应地添加和更新项目文件。
示例:
npx --yes @sap-ux/create@latest add deploy-config选项:
- - 部署目标:ABAP或Cloud Foundry(尚未实现)
-t, --target <string> - - 仅模拟操作,不写入文件,同时启用
-s, --simulate模式。--verbose - - 显示详细信息。
-v, --verbose - - 项目的基础配置文件。(默认值:"ui5.yaml")
-b, --base-file <string> - - 要写入的部署配置文件名称。(默认值:"ui5-deploy.yaml")
-d, --deploy-file <string>
Add the necessary configuration to an existing YAML file and the script to the file for variants creation. It uses the configuration from the YAML file passed by the CLI or default to , as provided by the or .
package.jsonui5.yamlfiori-tools-previewpreview-middlewareExample:
npx --yes @sap-ux/create@latest add variants-configOptions:
- - Path to the project configuration file in YAML format. (default:
-c, --config <string>)ui5.yaml - - Simulate only. Do not write to the config file. Also, sets
-s, --simulate--verbose - - Show verbose information.
-v, --verbose
为现有YAML文件添加必要配置,并在中添加变体创建脚本。它使用CLI传入的YAML文件配置,默认使用(由或提供)。
package.jsonui5.yamlfiori-tools-previewpreview-middleware示例:
npx --yes @sap-ux/create@latest add variants-config选项:
- - YAML格式的项目配置文件路径。(默认值:
-c, --config <string>)ui5.yaml - - 仅模拟操作,不写入配置文件,同时启用
-s, --simulate模式。--verbose - - 显示详细信息。
-v, --verbose
Configure an existing Cloud Foundry adaptation project for local preview by fetching reusable libraries, building the project, and configuring ui5.yaml file middlewares.
⚠️ Experimental: This command is experimental and may be subject to breaking changes or even removal in future versions. Use with caution and be prepared to update your configuration or migrate to alternative solutions, if needed.
Example:
npx --yes @sap-ux/create@latest add adp-cf-configOptions:
- - Show verbose information.
-v, --verbose - - Path to the project configuration file in YAML format. (default:
-c, --config <string>)ui5.yaml
通过获取可重用库、构建项目和配置ui5.yaml中间件,为现有Cloud Foundry适配项目配置本地预览功能。
⚠️ 实验性功能:此命令为实验性内容,未来版本可能会发生重大变更甚至被移除。请谨慎使用,并做好更新配置或迁移到替代方案的准备。
示例:
npx --yes @sap-ux/create@latest add adp-cf-config选项:
- - 显示详细信息。
-v, --verbose - - YAML格式的项目配置文件路径。(默认值:
-c, --config <string>)ui5.yaml
Add a new back-end system to the saved systems store (). Credentials are stored securely in the OS keychain.
~/.fioritoolsSystem types: , ,
AbapCloudOnPremGenericAuth types: , , ,
basicreentranceTicketoauth2oauth2ClientCredentialConnection types: , ,
abap_cataloggeneric_hostodata_serviceExample:
npx --yes @sap-ux/create@latest add system --name "My System" --url https://my-sap.example.comnpx --yes @sap-ux/create@latest add system --name "My System" --url https://my-sap.example.com --client 100 --username myusernpx --yes @sap-ux/create@latest add systemOptions:
- - Display name for the system
--name <string> - - URL of the backend system
--url <string> - - SAP client number (optional)
--client <string> - - System type (AbapCloud | OnPrem | Generic) (default:
--type <string>)OnPrem - - Authentication type (basic | reentranceTicket | oauth2 | oauth2ClientCredential) (default:
--auth <string>)basic - - Connection type (abap_catalog | generic_host | odata_service) (default:
--connection-type <string>)abap_catalog - - Username for basic authentication
--username <string> - - To avoid plain-text credentials in the shell's history, pass an env reference: --password env:MY_VAR
--password <string> - - Skip connection verification before saving
--skip-check
将新的后端系统添加到已保存系统存储()中。凭证将安全存储在操作系统密钥链中。
~/.fioritools系统类型:、、
AbapCloudOnPremGeneric认证类型:、、、
basicreentranceTicketoauth2oauth2ClientCredential连接类型:、、
abap_cataloggeneric_hostodata_service示例:
npx --yes @sap-ux/create@latest add system --name "My System" --url https://my-sap.example.comnpx --yes @sap-ux/create@latest add system --name "My System" --url https://my-sap.example.com --client 100 --username myusernpx --yes @sap-ux/create@latest add system选项:
- - 系统显示名称
--name <string> - - 后端系统的URL
--url <string> - - SAP客户端编号(可选)
--client <string> - - 系统类型(AbapCloud | OnPrem | Generic)(默认值:
--type <string>)OnPrem - - 认证类型(basic | reentranceTicket | oauth2 | oauth2ClientCredential)(默认值:
--auth <string>)basic - - 连接类型(abap_catalog | generic_host | odata_service)(默认值:
--connection-type <string>)abap_catalog - - 基础认证的用户名
--username <string> - - 为避免明文凭证出现在shell历史中,请传递环境变量引用:--password env:MY_VAR
--password <string> - - 保存前跳过连接验证
--skip-check
Add the necessary configuration for running a Fiori app in FLP Embedded Mode.
Adds a script to and creates an file
based on the existing . Pre-existing files will be overridden.
start-embeddedpackage.jsonflp.yamlui5.yamlExample:
npx --yes @sap-ux/create@latest add flp-embedded-config --bspApplication my-bsp-appOptions:
- (required) - BSP application name of the deployed app
-b, --bspApplication <string> - - Path (relative to project root) to the ui5.yaml to use as base for flp.yaml (default:
-c, --config <string>)ui5.yaml - - FLP URL path used in the start-embedded script (default:
--flp <string>)sap/bc/ui5_ui5/ui2/ushell/shells/abap/Fiorilaunchpad.html - - Simulate only. Do not write files. Also sets
-s, --simulate.--verbose - - Show verbose information.
-v, --verbose
添加在FLP嵌入式模式下运行Fiori应用的必要配置。
在中添加脚本,并基于现有创建文件。已存在的文件将被覆盖。
package.jsonstart-embeddedui5.yamlflp.yaml示例:
npx --yes @sap-ux/create@latest add flp-embedded-config --bspApplication my-bsp-app选项:
- (必填) - 已部署应用的BSP应用名称
-b, --bspApplication <string> - - 用作flp.yaml基础的ui5.yaml路径(相对于项目根目录)(默认值:
-c, --config <string>)ui5.yaml - - start-embedded脚本中使用的FLP URL路径 (默认值:
--flp <string>)sap/bc/ui5_ui5/ui2/ushell/shells/abap/Fiorilaunchpad.html - - 仅模拟操作,不写入文件,同时启用
-s, --simulate模式。--verbose - - 显示详细信息。
-v, --verbose
Command group for converting existing SAP Fiori applications. A subcommand is required.
Usage:
npx --yes @sap-ux/create@latest convert [subcommand] [options]The available subcommands are: and
preview-configeslint-config用于转换现有SAP Fiori应用的命令组,必须指定子命令。
用法:
npx --yes @sap-ux/create@latest convert [subcommand] [options]可用子命令:和
preview-configeslint-configFor the full workflow guide including prerequisites and manual steps, read.references/convert-preview-config.md
Executed 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 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 .
package.json*_old.htmlExamples:
npx --yes @sap-ux/create@latest convert preview-config --simulate=false --tests=falsenpx --yes @sap-ux/create@latest convert preview-configOptions:
- - Simulate only. Do not write.
-s, --simulate <boolean> - - Show verbose information.
-v, --verbose - - Also, convert test suite and test runners.
-t, --tests <boolean>
如需包含前置条件和手动步骤的完整工作流指南,请阅读。references/convert-preview-config.md
在应用根目录执行此命令,将应用转换为使用虚拟端点的预览模式。它会使用中的脚本配置来相应调整UI5配置YAML文件。过时的JS和TS源文件将被删除,之前用于预览的HTML文件将重命名为。
package.json*_old.html示例:
npx --yes @sap-ux/create@latest convert preview-config --simulate=false --tests=falsenpx --yes @sap-ux/create@latest convert preview-config选项:
- - 仅模拟操作,不写入文件。
-s, --simulate <boolean> - - 显示详细信息。
-v, --verbose - - 同时转换测试套件和测试运行器。
-t, --tests <boolean>
Executed 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 plugin), and deletes the deprecated plugin. To avoid dependency resolution conflicts, it deletes the file as well as the module from the folder before running .
@sap-ux/eslint-plugin-fiori-toolseslint-plugin-fiori-custompackage-lock.json@sap-ux/eslint-plugin-fiori-toolsnode_modulesnpm installExamples:
npx --yes @sap-ux/create@latest convert eslint-configOptions:
- - Simulate only. Do not write to the config file. Also, sets
-s, --simulate--verbose - - Show verbose information.
-v, --verbose - - The name of the SAP Fiori tools ESLint plugin configuration to be used. (default:
-c, --config <string>)recommended - - Skip the
-n, --skip-installstep. Also skips deleting thenpm installfile and thepackage-lock.jsonmodule from the@sap-ux/eslint-plugin-fiori-toolsfolder.node_modules
在应用根目录执行此命令,将应用的ESLint配置转换为扁平配置格式(ESLint 9版本起使用)。它还会引入针对SAP Fiori应用的特定ESLint检查(使用插件),并删除已弃用的插件。为避免依赖解析冲突,在运行之前,会删除文件以及文件夹中的模块。
@sap-ux/eslint-plugin-fiori-toolseslint-plugin-fiori-customnpm installpackage-lock.jsonnode_modules@sap-ux/eslint-plugin-fiori-tools示例:
npx --yes @sap-ux/create@latest convert eslint-config选项:
- - 仅模拟操作,不写入配置文件,同时启用
-s, --simulate模式。--verbose - - 显示详细信息。
-v, --verbose - - 使用的SAP Fiori tools ESLint插件配置名称。(默认值:
-c, --config <string>)recommended - - 跳过
-n, --skip-install步骤,同时跳过删除npm install文件和package-lock.json文件夹中的node_modules模块。@sap-ux/eslint-plugin-fiori-tools
Command group for removing features from existing SAP Fiori applications. A subcommand is required.
Usage:
npx --yes @sap-ux/create@latest remove [subcommand] [options]The available subcommands are: and
mockserver-configsystem用于从现有SAP Fiori应用中移除功能的命令组,必须指定子命令。
用法:
npx --yes @sap-ux/create@latest remove [subcommand] [options]可用子命令:和
mockserver-configsystemRemoves the configuration for the mockserver module.
@sap-ux/ui5-middleware-fe-mockserverExample:
npx --yes @sap-ux/create@latest remove mockserver-configOptions:
- - Show verbose information.
-v, --verbose - - Do not ask for confirmation when deleting files.
-f, --force
移除模拟服务器模块的配置。
@sap-ux/ui5-middleware-fe-mockserver示例:
npx --yes @sap-ux/create@latest remove mockserver-config选项:
- - 显示详细信息。
-v, --verbose - - 删除文件时不询问确认。
-f, --force
Remove a saved back-end system from the saved system store (). Also deletes any stored credentials in the OS keychain.
~/.fioritoolsExample:
npx --yes @sap-ux/create@latest remove system --url https://my-sap.example.comnpx --yes @sap-ux/create@latest remove system --url https://my-sap.example.com --client 100npx --yes @sap-ux/create@latest remove systemOptions:
- - URL of the backend system to remove
--url <string> - - SAP client number (optional)
--client <string> - - Skip confirmation prompt
--force
从已保存系统存储()中移除已保存的后端系统。同时删除操作系统密钥链中存储的所有凭证。
~/.fioritools示例:
npx --yes @sap-ux/create@latest remove system --url https://my-sap.example.comnpx --yes @sap-ux/create@latest remove system --url https://my-sap.example.com --client 100npx --yes @sap-ux/create@latest remove system选项:
- - 要移除的后端系统的URL
--url <string> - - SAP客户端编号(可选)
--client <string> - - 跳过确认提示
--force
Command group for updating saved resources. A subcommand is required.
Usage:
npx --yes @sap-ux/create@latest update [subcommand] [options]The available subcommands are: and
systemservice-metadata用于更新已保存资源的命令组,必须指定子命令。
用法:
npx --yes @sap-ux/create@latest update [subcommand] [options]可用子命令:和
systemservice-metadataUpdate an existing backend system in the saved systems store (). The system is identified by its URL and optional SAP client.
~/.fioritoolsExample:
npx --yes @sap-ux/create@latest update system --url https://my-sap.example.com --name "New Name"npx --yes @sap-ux/create@latest update system --url https://my-sap.example.com --client 100 --username newusernpx --yes @sap-ux/create@latest update systemOptions:
- - URL of the backend system to update
--url <string> - - SAP client number to identify the system (optional)
--client <string> - - New display name for the system
--name <string> - - New username
--username <string> - - To avoid plain-text credentials in the shell's history, pass an env reference: --password env:MY_VAR
--password <string> - - Remove stored credentials from the system
--clear-credentials - - Skip connection verification before saving
--skip-check
更新已保存系统存储()中的现有后端系统。系统通过其URL和可选的SAP客户端编号进行识别。
~/.fioritools示例:
npx --yes @sap-ux/create@latest update system --url https://my-sap.example.com --name "New Name"npx --yes @sap-ux/create@latest update system --url https://my-sap.example.com --client 100 --username newusernpx --yes @sap-ux/create@latest update system选项:
- - 要更新的后端系统的URL
--url <string> - - 用于识别系统的SAP客户端编号(可选)
--client <string> - - 系统的新显示名称
--name <string> - - 新用户名
--username <string> - - 为避免明文凭证出现在shell历史中,请传递环境变量引用:--password env:MY_VAR
--password <string> - - 移除系统中存储的凭证
--clear-credentials - - 保存前跳过连接验证
--skip-check
For the full workflow guide including prerequisites and manual steps, read.references/update-service-metadata.md
Refresh the local OData service metadata.xml from the live backend for a Fiori application.
Also fetches value-help (external) service metadata when available.
Only supported for Fiori applications connected to an EDMX backend. CAP applications are not supported,
as their service metadata is generated locally from the CDS model rather than fetched from a backend.
Example:
npx --yes @sap-ux/create@latest update service-metadata /path/to/my-fiori-appnpx --yes @sap-ux/create@latest update service-metadata /path/to/my-fiori-app --simulateOptions:
- - Name of the data source in manifest.json (defaults to mainService or first service)
--service <name> - - Skip fetching value-help (external) service metadata
--no-value-help - - Simulate only. Do not write. Also sets
-s, --simulate.--verbose - - Show verbose information.
-v, --verbose
如需包含前置条件和手动步骤的完整工作流指南,请阅读。references/update-service-metadata.md
从实时后端刷新Fiori应用的本地OData服务metadata.xml。当可用时,还会获取值帮助(外部)服务元数据。
仅支持连接到EDMX后端的Fiori应用。不支持CAP应用,因为其服务元数据是从CDS模型本地生成的,而非从后端获取。
示例:
npx --yes @sap-ux/create@latest update service-metadata /path/to/my-fiori-appnpx --yes @sap-ux/create@latest update service-metadata /path/to/my-fiori-app --simulate选项:
- - manifest.json中的数据源名称(默认为mainService或第一个服务)
--service <name> - - 跳过获取值帮助(外部)服务元数据
--no-value-help - - 仅模拟操作,不写入文件,同时启用
-s, --simulate模式。--verbose - - 显示详细信息。
-v, --verbose
Command group for changing existing SAP Fiori applications. A subcommand is required.
Usage:
npx --yes @sap-ux/create@latest change [subcommand] [options]The available subcommands are: and
data-sourceinbound用于修改现有SAP Fiori应用的命令组,必须指定子命令。
用法:
npx --yes @sap-ux/create@latest change [subcommand] [options]可用子命令:和
data-sourceinboundReplace the OData Source of the base application in an adaptation project.
This command is not supported for Cloud Foundry projects.
Example:
npx --yes @sap-ux/create@latest change data-sourceOptions:
- - Simulate only. Do not write or install.
-s, --simulate - - Path to the project configuration file in YAML format. (default:
-c, --config <string>)ui5.yaml
替换适配项目中基础应用的OData源。
此命令不支持Cloud Foundry项目。
示例:
npx --yes @sap-ux/create@latest change data-source选项:
- - 仅模拟操作,不写入文件或执行安装。
-s, --simulate - - YAML格式的项目配置文件路径。(默认值:
-c, --config <string>)ui5.yaml
Replace the inbound FLP configurations of the base application in an adaptation project.
This command is not supported for Cloud Foundry projects.
Example:
npx --yes @sap-ux/create@latest change inboundOptions:
- - Simulate only. Do not write or install.
-s, --simulate
替换适配项目中基础应用的FLP入站配置。
此命令不支持Cloud Foundry项目。
示例:
npx --yes @sap-ux/create@latest change inbound选项:
- - 仅模拟操作,不写入文件或执行安装。
-s, --simulate
Command group for listing saved resources. A subcommand is required.
Usage:
npx --yes @sap-ux/create@latest list [subcommand] [options]The available subcommands are:
system用于列出已保存资源的命令组,必须指定子命令。
用法:
npx --yes @sap-ux/create@latest list [subcommand] [options]可用子命令:
systemList all back-end systems in the saved system store (). Sensitive data, such as passwords and tokens, is never included in the output.
~/.fioritoolsExample:
npx --yes @sap-ux/create@latest list systemnpx --yes @sap-ux/create@latest list system --jsonOptions:
- - Output as JSON, which is useful for automation and MCP integrations.
--json
列出已保存系统存储()中的所有后端系统。输出中绝不会包含敏感数据,如密码和令牌。
~/.fioritools示例:
npx --yes @sap-ux/create@latest list systemnpx --yes @sap-ux/create@latest list system --json选项:
- - 以JSON格式输出,适用于自动化和MCP集成。
--json
Command group for retrieving saved resources. A subcommand is required.
Usage:
npx --yes @sap-ux/create@latest get [subcommand] [options]The available subcommands are:
system用于检索已保存资源的命令组,必须指定子命令。
用法:
npx --yes @sap-ux/create@latest get [subcommand] [options]可用子命令:
systemRetrieve details of a saved back-end system by URL. Sensitive data (passwords, tokens) is never included in the output.
Example:
npx --yes @sap-ux/create@latest get system --url https://my-sap.example.comnpx --yes @sap-ux/create@latest get system --url https://my-sap.example.com --client 100npx --yes @sap-ux/create@latest get system --url https://my-sap.example.com --jsonOptions:
- (required) - URL of the backend system.
--url <string> - - SAP client number (optional).
--client <string> - - Output as JSON, which is useful for automation and MCP integrations.
--json
通过URL检索已保存后端系统的详细信息。输出中绝不会包含敏感数据(密码、令牌)。
示例:
npx --yes @sap-ux/create@latest get system --url https://my-sap.example.comnpx --yes @sap-ux/create@latest get system --url https://my-sap.example.com --client 100npx --yes @sap-ux/create@latest get system --url https://my-sap.example.com --json选项:
- (必填) - 后端系统的URL。
--url <string> - - SAP客户端编号(可选)。
--client <string> - - 以JSON格式输出,适用于自动化和MCP集成。
--json