## Installation

You can download and install `nsc`, the CLI for Namespace, by following the instructions below for your OS. Our CLI is [open-source](https://github.com/namespacelabs/foundation/tree/main/cmd/nsc) and built atop our [SDK](https://github.com/namespacelabs/integrations).

**Homebrew**

```bash theme={null}
brew install namespacelabs/namespace/nsc
```

Namespace is continuously evolving, and new versions of the `nsc` tool are released regularly. To update run:

```bash theme={null}
brew upgrade nsc
```

**macOS**

### Install

```bash theme={null}
curl -fsSL https://get.namespace.so/cloud/install.sh | sh
```

### Updating

Namespace is continuously evolving, and new versions of the `nsc` tool are released regularly. To update the tool run:

```bash theme={null}
nsc version update
```

**Linux**

### Install

```bash theme={null}
curl -fsSL https://get.namespace.so/cloud/install.sh | sh
```

### Updating

Namespace is continuously evolving, and new versions of the `nsc` tool are released regularly. To update the tool run:

```bash theme={null}
nsc version update
```

**Windows**

### Install

Run the following command in PowerShell:

```bash theme={null}
irm https://get.namespace.so/cloud/install.ps1 | iex
```

### Updating

Namespace is continuously evolving, and new versions of the `nsc` tool are released regularly. To update the tool, run:

```bash theme={null}
nsc version update
```

**npm**

## Install globally

```bash theme={null}
npm install -g @namespacelabs/cli
```

This installs the `nsc` command globally on your system.

## Run with npx

You can also run `nsc` without installing it globally:

```bash theme={null}
npx @namespacelabs/cli
```

To update to the latest version:

```bash theme={null}
npm update -g @namespacelabs/cli
```

**Hermit**

[Hermit](https://cashapp.github.io/hermit/) manages isolated, self-bootstrapping sets of tools in software projects.

```bash theme={null}
hermit install nsc
```
