# nylo (/docs/reference/cli/nylo)



```text
npx @nylorun/cli <tenant|configure|env|doctor> [flags]
```

The `@nylorun/cli` package provides the `nylo` command. It talks to a running
Runtime; start the stack first with `npx nylorun up`.

## `tenant create` [#tenant-create]

```text
nylo tenant create [name]
```

Creates a Tenant, links the current project (`.nylorun/`), and seeds its model
from `.env` (`MODEL_PROVIDER`, `MODEL`, `MODEL_PROVIDER_API_KEY`, optional
`MODEL_PROVIDER_BASE_URL`).

## `tenant current` [#tenant-current]

```text
nylo tenant current
```

Prints the Tenant this project is linked to.

## `tenant list` [#tenant-list]

```text
nylo tenant list [--json]
```

Lists every Tenant on the Runtime.

## `tenant use` [#tenant-use]

```text
nylo tenant use <name-or-id>
```

Links the current project to an existing Tenant.

## `tenant status` [#tenant-status]

```text
nylo tenant status [--json]
```

Shows the linked Tenant's health.

## `tenant reset` / `tenant delete` [#tenant-reset--tenant-delete]

```text
nylo tenant reset
nylo tenant delete
```

`reset` clears selected Tenant data. `delete` removes the Tenant. Removing
`.nylorun/` only unlinks the project; it never deletes a Tenant.

## `configure` [#configure]

```text
nylo configure
```

Interactive wizard that sets the linked Tenant's provider, model, and key. It
does not send a test request; verify in Studio.

## `env` [#env]

```text
nylo env
```

Prints shell exports for the linked project:

```sh
eval "$(npx @nylorun/cli env)"
```

## `doctor sandbox` [#doctor-sandbox]

```text
nylo doctor sandbox [--json]
```

Checks the linked Tenant's sandbox.

## Exit codes [#exit-codes]

| Exit      | Meaning                                    |
| --------- | ------------------------------------------ |
| 0         | Success.                                   |
| 1         | General or configuration failure.          |
| 2         | Usage error or command moved to `nylorun`. |
| 6         | Runtime is not reachable.                  |
| 130 / 143 | Interrupted by SIGINT / SIGTERM.           |
