Create a JSS project for the latest versions of JSS and Sitecore

Version: 20.x

The tooling provided by JSS helps you create a JSS application for the newest version of Sitecore.

To develop a JSS application, you must have:

  • An operating system supported by Node (Mac, Windows, Linux).

  • Node. We recommend using the latest long-term support (LTS) release.

Note

To run a JSS application in production or develop using Sitecore data, you must connect your application to a Sitecore instance with the Headless Services module.

Sitecore requires Windows, but the Sitecore instance does not have to be local. You can use a Sitecore instance installed in a virtual machine or on a remote server.

To create a JSS project:

  1. In a terminal, invoke the JSS app initializer using the following command and answer the questions when prompted:

    RequestResponse
    npx create-sitecore-jss@ver20
    Tip

    For alternative commands and details, see the documentation for the JSS app initializer .

    Note

    This command scaffolds a JSS application based on the latest version of JSS templates. To create an application based on an older version of JSS and Sitecore, refer to Create a JSS app for an older version of Sitecore.

  2. Change the directory to your application folder:

    RequestResponse
    cd my-first-jss-app
  3. Install the JSS CLI globally.

  4. Start the development server:

    RequestResponse
    jss start

For framework-specific walkthroughs and more detailed guides, start with the guide for developing JSS applications.

Do you have some feedback for us?

If you have suggestions for improving this article,