> ## Documentation Index
> Fetch the complete documentation index at: https://namespace.so/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Namespace Command Line Tools

Namespace has two command line tools. `nsc` drives the Namespace platform, and `devbox` drives Devboxes. They are installed separately, and each one authenticates against your [workspace](https://namespace.so/docs/workspaces.md) on its own.

> [card] [Namespace CLI](https://namespace.so/docs/reference/cli/installation.md)
>
> Install `nsc` and run the platform from your terminal.

> [card] [Devbox CLI](https://namespace.so/docs/reference/devbox-cli/installation.md)
>
> Install `devbox` to create and work in Devboxes.

## Get started

> [tab] Namespace CLI
>
> ```bash theme={null}
> curl -fsSL https://get.namespace.so/cloud/install.sh | sh
> nsc login
>
> # Start an ephemeral instance, then open a shell in it
> nsc create
> nsc ssh <instance-id>
> ```
>
> See [Installation](https://namespace.so/docs/reference/cli/installation.md) for Homebrew, npm, Hermit, and Windows.

> [tab] Devbox CLI
>
> ```bash theme={null}
> curl -fsSL get.namespace.so/devbox/install.sh | bash
> devbox login
>
> # Create a Devbox, then open a shell in it
> devbox create --name my-devbox
> devbox ssh my-devbox
> ```
>
> See [Installation](https://namespace.so/docs/reference/devbox-cli/installation.md) for macOS, Linux, and Windows.

## Common tasks

Both tools cover the same shape of work on different resources.

| Task | Namespace CLI | Devbox CLI |
| - | - | - |
| Log in | [`nsc login`](https://namespace.so/docs/reference/cli/login) | [`devbox login`](https://namespace.so/docs/reference/devbox-cli/auth#devbox-auth-login) |
| Create | [`nsc create`](https://namespace.so/docs/reference/cli/create) | [`devbox create`](https://namespace.so/docs/reference/devbox-cli/create) |
| List what is running | [`nsc list`](https://namespace.so/docs/reference/cli/list) | [`devbox list`](https://namespace.so/docs/reference/devbox-cli/list) |
| Open a shell | [`nsc ssh`](https://namespace.so/docs/reference/cli/ssh) | [`devbox ssh`](https://namespace.so/docs/reference/devbox-cli/ssh) |
| Run one command | [`nsc run`](https://namespace.so/docs/reference/cli/run) | [`devbox exec`](https://namespace.so/docs/reference/devbox-cli/exec) |
| Tear down | [`nsc destroy`](https://namespace.so/docs/reference/cli/destroy) | [`devbox delete`](https://namespace.so/docs/reference/devbox-cli/delete) |

> [!NOTE]
>
> If you want to drive Namespace from code instead of a terminal, see the [API and SDKs](https://namespace.so/docs/reference/sdk.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.