NylorunDocsBeta
Get startedBuildRunDeployReferenceMore
CLI

nylo

Create and select Tenants, configure models, and print connection settings.

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

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

nylo tenant current

Prints the Tenant this project is linked to.

tenant list

nylo tenant list [--json]

Lists every Tenant on the Runtime.

tenant use

nylo tenant use <name-or-id>

Links the current project to an existing Tenant.

tenant status

nylo tenant status [--json]

Shows the linked Tenant's health.

tenant reset / tenant delete

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

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

nylo env

Prints shell exports for the linked project:

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

doctor sandbox

nylo doctor sandbox [--json]

Checks the linked Tenant's sandbox.

Exit codes

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

On this page