# Preparing your environment

### Prerequisites <a href="#prerequisite" id="prerequisite"></a>

The Singular Widget SDK requires a local installation of Node.js. Download it from <https://nodejs.org/en/>.

{% hint style="info" %}
This document describes how to install singular-cli. For details about Singular's other CLIs, singularwidget-cli and singularapp-cli, see <https://github.com/singularlive/> and <https://www.npmjs.com/~singularlive>.
{% endhint %}

### Installing the Singular CLI <a href="#install-singular-cli" id="install-singular-cli"></a>

After installing Node.js, open a console and install `singular-cli` by running this command:

```bash
npm install singular-cli -g
```

After the installing the CLI, console commands to create and deploy Singular widgets and apps will become available.

The `create` commands serve to clone the Singular boilerplates into a specified folder.

The `deploy` commands check, package, and upload your widget or app code to Singular.live. Every widget and app is identified by a unique deploy key. Generating a deploy key is covered [here](/software-development-kits/widget-sdk/getting-started.md#deploying-an-app).

**Create Singular widget boilerplate**

```bash
singular createwidget <folder name>
```

**Deploy a Singular widget**

```bash
singular deploywidget <folder name>
```

For more information about the Singlar.live CLI see <https://github.com/singularlive/singular-cli>.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.singular.live/software-development-kits/widget-sdk/preparing-your-environment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
