---
sourceDocument: Brazil Build or modify applications
sourceDocumentLink: https://www.servicenow.com/docs/r/application-development

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Build or modify applications

ft:clusterId :

    - cadev

bundleId :

    - cadev

workflow :

    - Development, Data, and Analytics


---

# Lux Lab for VS Code

# Lux Lab for VS Code {#ariaid-title1}

Release version: Brazil  
Updated September 29, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 3 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Lux Lab for VS Code

ServiceNow Lux Lab for VS Code integrates key development workflows such as project creation, instance browsing, local preview, build, and deployment directly into Visual Studio Code.
It complements the standalone Lux Lab desktop app by enabling these capabilities within the VS Code editor that developers already use.
This extension facilitates a streamlined and efficient development experience for building and managing ServiceNow applications.
Show full answer Show less  

## Requirements

* Visual Studio Code version 1.97 or later
* Node.js version 24 or later
* pnpm version 10 or later
* ServiceNow SDK version 4.14 or later
* ServiceNow instance Australia Patch 5 or later, or Zurich Patch 12 or later

Use the **Lux : Show Environment Check** command to verify required versions and ensure compatibility before creating projects. While environment checks can be skipped, this is not recommended as it may cause command failures.

## Instance Connections

Connect to ServiceNow instances via the Instance Explorer in the Lux Lab activity bar or with the **Lux : Add ServiceNow Instance** command. Two authentication methods are supported:

* **Basic:** Enter username, password, and a profile alias; credentials are securely validated and stored.
* **OAuth:** Enter username and password, then complete authorization via a browser and input an authorization code; tokens are securely stored.

Note: Remote instances require HTTPS.

## Key Features

* **Instance Explorer:** Browse Experiences, Pages, and Widgets on connected instances; open metadata, source files, or preview artifacts directly.
* **Script Runner:** Manage project lifecycle commands including Dev, Build, Deploy, Stop, and view command output and dev server terminal within VS Code.
* **Quick Preview:** Preview pages and widgets locally without leaving VS Code; preview can be triggered via context menus or command palette.
* **AI Integration:** Supports AI agents for driving page and widget creation through bundled project skills without vendor lock-in.

## Commands and Workflow

Commands are accessible via the Command Palette using the prefix **Lux :** and include:

* Welcome and environment management commands
* Instance connection and sign-in commands
* Project creation and page creation commands
* Script running commands (Dev, Build, Deploy, etc.)
* Preview and output viewing commands

The **Lux : Create Lux Project** command scaffolds a standalone application by selecting the instance, folder, application name, and applying a fixed vendor prefix with an editable scope suffix. Dependencies are installed automatically, and the project is opened in VS Code. For extension applications, a separate workflow is available.

## Practical Benefits for ServiceNow Customers

* Enables seamless ServiceNow app development within a familiar VS Code environment.
* Streamlines connection management and authentication for multiple ServiceNow instances.
* Facilitates efficient development cycles with integrated build, preview, and deployment tools.
* Supports local preview to accelerate testing and iteration without context switching.
* Provides flexibility with AI-assisted page and widget creation, enhancing productivity.  
ServiceNow Lux Lab for VS Code brings project creation, instance browsing, local preview, build, and deployment into Visual Studio Code. It ships alongside the standalone Lux Lab desktop app as a separate product.

When you want the same build/preview/deploy workflow inside an editor you already have, use the Lux Lab VS Code extension, rather than the standalone Lux Lab app. The extension adds project creation, instance browsing, local preview, build, and deployment commands to VS Code.

For the desktop app, see [Lux Lab](https://www.servicenow.com/docs/1849JF9y6TaFUtueFe0mBw "Lux Lab is the standalone desktop app for building Lux applications, not a VS Code extension. It combines a project explorer, code editor, instance browser, agent chat panel, source control, and build actions in one window.").

## Requirements {#lux-lab-for-vs-code__lux-lab-for-vs-code-requirements}

{#lux-lab-for-vs-code__table_imf_rfb_dkc__entry__3}

| Application | Version | Resources for more information |
|-|-|-|
| Visual Studio Code | 1.97 or later | [Visual Studio Code updates](https://code.visualstudio.com/updates/v1_132) |
| Node.js | 24 or later | [Node.js](https://nodejs.org/en/download) |
| pnpm | 10 or later | [pnpm](https://pnpm.io/installation) |
| ServiceNow SDK | 4.14 or later | [ServiceNow SDK](https://www.npmjs.com/package/@servicenow/sdk) |
| ServiceNow instance | * Australia Patch 5 or later * Zurich Patch 12 or later {#lux-lab-for-vs-code__ul_xtl_bgb_dkc} | [Prepare your upgrade](https://www.servicenow.com/docs/access?context=rn-prepare-landing-page&version=brazil&pubname=brazil-release-notes&ft:locale=en-US) |
[ ]

{#lux-lab-for-vs-code__table_imf_rfb_dkc}

The Lux: Show Environment Check command displays the required and detected versions for Node.js, pnpm, and ServiceNow SDK. After fixing a failure, run Lux: Re-check Environment.  
Warning:  
The Environment Check page offers Skip checks and proceed anyway. Skipping leaves the extension's features enabled while the checks are unmet, and commands may fail. The check must pass before you can create a project.

## Instance connections {#lux-lab-for-vs-code__lux-lab-for-vs-code-instance-connections}

You connect to an instance from Instance Explorer in the [Lux Lab](https://www.servicenow.com/docs/1849JF9y6TaFUtueFe0mBw "Lux Lab is the standalone desktop app for building Lux applications, not a VS Code extension. It combines a project explorer, code editor, instance browser, agent chat panel, source control, and build actions in one window.") activity bar view by selecting Connect to ServiceNow, or by running Lux: Add ServiceNow Instance. You enter the instance name or full URL, then select an authentication method.

Basic
:   You enter your username, password, and a unique profile alias. The extension validates the credentials against the instance, then stores the profile in VS Code SecretStorage. The extension masks passwords and doesn't
    write them to the project.

OAuth
:   You enter your username, password, and a profile alias, then open the authorization URL the extension displays, authorize in the browser, and paste the returned code into a masked input. The extension exchanges it using Authorization Code with PKCE
    and stores the token in VS Code SecretStorage.

:   Remote instances must use HTTPS.

## What it provides {#lux-lab-for-vs-code__lux-lab-for-vs-code-what-it-provides}

Instance Explorer
:   Browses Experiences, Pages, and Widgets on a connected instance. Select an artifact to open its metadata, open its source, or launch a preview.

Script Runner
:   Creates projects, installs dependencies, and runs dev, build, and deploy. Actions include Dev, Build, Deploy, Stop,
    Show Command Output, and Show Dev Server Terminal.

Quick Preview
:   Opens local preview-able pages and widgets without leaving VS Code. Save the file first, then select it in Quick Preview. You can also select and hold (or right-click) a preview-able file and select Lux: Open Preview.

:   An AI agent can drive page and widget creation through the project's bundled skills. The extension isn't tied to a specific agent vendor.

## Commands {#lux-lab-for-vs-code__lux-lab-for-vs-code-commands}

Open the Command Palette (`Cmd+Shift+P` on macOS, `Ctrl+Shift+P` on Windows and Linux) and search for Lux`:`.

* Lux`: Show Welcome Page`
* Lux`: Show Environment Check`
* Lux`: Re-check Environment`
* Lux`: Add ServiceNow Instance`
* Lux`: Sign in to Active Instance`
* Lux`: Refresh Instance Explorer`
* Lux`: Create LUX Project`
* Lux`: Create Page`
* Lux`: Run Script...`
* Lux`: Build`
* Lux`: Deploy`
* Lux`: Open Preview`
* Lux`: Show Command Output`

Selecting and holding (or right-clicking) a project, page, widget, or preview-able file in the Explorer or [Lux Lab](https://www.servicenow.com/docs/1849JF9y6TaFUtueFe0mBw "Lux Lab is the standalone desktop app for building Lux applications, not a VS Code extension. It combines a project explorer, code editor, instance browser, agent chat panel, source control, and build actions in one window.") views gives the same actions in context. The context menu also opens a terminal and reveals a project in Finder or File Explorer.

## Workflow {#lux-lab-for-vs-code__lux-lab-for-vs-code-workflow}

The Lux`: Create `Lux` Project` command scaffolds a standalone application. You select the instance, the parent folder, the application name, the project folder name, the Standalone App
template, and the scope suffix. When the extension retrieves the vendor prefix from the instance, the prefix is fixed and only the suffix is editable. The extension then scaffolds, installs dependencies, and opens the
project. The Lux`: Create Page` command adds a route and creates pages/\<page-slug\>/page.js.

For extension applications rather than standalone ones, see [Create an extension application with Lux Lab](https://www.servicenow.com/docs/axgUYJvq829JZJQn7tDQAA "Lux Lab's VS Code extension scaffolds, builds, and deploys an extension application through a guided UI. An extension application adds pages to an existing ServiceNow experience; it doesn't create a standalone experience.").
**Related concepts**   

* [Lux Lab](https://www.servicenow.com/docs/1849JF9y6TaFUtueFe0mBw "Lux Lab is the standalone desktop app for building Lux applications, not a VS Code extension. It combines a project explorer, code editor, instance browser, agent chat panel, source control, and build actions in one window.")  
**Related reference**   

* [ServiceNow SDK](https://www.servicenow.com/docs/oY6OIbAxA7D8lqT4HGlSFw "ServiceNow SDK is the command-line tool that scaffolds, builds, and deploys a Lux application. It's distributed as the npm package @servicenow/sdk and invoked as now-sdk.")

