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

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia 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: Australia  
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 application development workflows---project creation, instance browsing, local preview, build, and deployment---directly into Visual Studio Code.
It complements the standalone Lux Lab desktop app, enabling developers to work within their preferred editor while maintaining a consistent build and deployment process for ServiceNow applications.
Show full answer Show less  

## Key Features

* **Instance Connections:** Connect to ServiceNow instances via Instance Explorer using Basic or OAuth authentication, with credentials securely stored in VS Code SecretStorage. Supports HTTPS for remote instances.
* **Instance Explorer:** Browse Experiences, Pages, and Widgets on connected instances. Open metadata, source code, or launch previews of artifacts within VS Code.
* **Script Runner:** Manage development lifecycle commands such as Dev, Build, Deploy, Stop, and view command outputs or development server terminals.
* **Quick Preview:** Preview local pages and widgets without leaving VS Code, triggered by saving files and selecting preview commands or context menu options.
* **AI Agent Support:** The extension supports AI-driven page and widget creation via bundled skills, compatible with various AI agent vendors.
* **Command Palette Integration:** Access a comprehensive set of commands prefixed with 'Lux :' for environment checks, instance management, project and page creation, build/deploy tasks, and previews.
* **Context Menus:** Right-click context menus in Explorer and Lux Lab views provide quick access to relevant actions and tools like terminal opening and file system navigation.

## Requirements and Environment Preparation

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

The **Lux : Show Environment Check** command verifies that these dependencies meet version requirements before enabling project creation. Users can skip checks, but this may cause command failures.

## Workflow Highlights

* Use **Lux : Create Lux Project** to scaffold standalone applications, specifying the instance, folder, application name, template, and scope suffix. The vendor prefix is fixed based on instance data.
* **Lux : Create Page** adds application routes and page files to your project.
* Build, deploy, and preview your application entirely within VS Code, streamlining development and reducing context switching.

## Practical Benefits for ServiceNow Customers

This extension enables ServiceNow developers to accelerate application development by embedding ServiceNow project workflows into VS Code, a widely used development environment. It enhances productivity through integrated instance browsing, secure connection management, and in-editor preview and deployment capabilities. The environment checks ensure compatibility, reducing setup issues. The AI integration option supports smarter page and widget creation aligned with your project's needs.  
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/rNWHKcUWxrZnuu6bNivGfw "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=australia&pubname=australia-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/rNWHKcUWxrZnuu6bNivGfw "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/rNWHKcUWxrZnuu6bNivGfw "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/e715jNwHg1jiQijDVosncA "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/rNWHKcUWxrZnuu6bNivGfw "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/qqnlIBoD6w1T9XfXyLmSHg "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.")

