Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>ServiceNow PublishNew to Visual Studio Code? Get it now.
ServiceNow Publish

ServiceNow Publish

allenmxh

|
27 installs
| (0) | Free
Publish app to ServiceNow
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ServiceNow-Publish Extension for VS Code

这个扩展帮助您将 Vue/React 应用程序发布到 ServiceNow 平台。

主要功能

  1. 发布应用到 ServiceNow
  2. 通过配置文件管理所有设置

命令

  • sn-publish: Publish App - 发布应用
  • sn-publish: Edit Configuration File - 编辑配置文件

配置文件

本扩展完全通过配置文件来管理所有设置,不需要手动输入任何信息。默认配置文件位于工作区根目录,名为 sn-config.json。

配置文件格式

{
  "instance": "your-instance.service-now.com",
  "username": "your-username",
  "password": "your-password",
  "application": "your-application-id",
  "uiPageName": "your-ui-page-name",
  "apiURL": "static assets api url"
}

您可以通过 sn-publish: Edit Configuration File 命令快速创建或编辑配置文件。首次运行此命令时,将创建一个默认配置文件模板。

使用流程

  1. 运行 sn-publish: Edit Configuration File 命令创建并编辑配置文件
  2. 填写 ServiceNow 实例信息、用户名和密码
  3. 运行 sn-publish: Publish App 命令发布应用

设置

您可以在 VS Code 设置中指定配置文件路径:

  • servicenow.configFilePath: 配置文件的路径(如不指定,默认为工作区根目录下的 sn-config.json)

享受使用!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft