> This page is for version Latest (default).
> For other versions, use one of these documentation indexes:
> - Latest (default): https://docs.nvidia.com/nemo/guardrails/latest/llms.txt
> - v0.25.0: https://docs.nvidia.com/nemo/guardrails/v0.25.0/llms.txt
> - v0.24.1: https://docs.nvidia.com/nemo/guardrails/v0.24.1/llms.txt
> - v0.24.0: https://docs.nvidia.com/nemo/guardrails/v0.24.0/llms.txt
> - v0.23.0: https://docs.nvidia.com/nemo/guardrails/v0.23.0/llms.txt
> - v0.22.0: https://docs.nvidia.com/nemo/guardrails/v0.22.0/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/guardrails/llms.txt.

# nemoguardrails.server.experimental.cli

Server-owned manifest commands, independent of the library's CLI.

Validation and inspection construct routes but never enter application lifespan.
Serving uses the same application assembly and its existing resource ownership.

## Module Contents

### Functions

| Name                                                                           | Description                                                                |
| ------------------------------------------------------------------------------ | -------------------------------------------------------------------------- |
| [`_prepare`](#nemoguardrails-server-experimental-cli-_prepare)                 | Validate through existing assembly, suppressing raw validation inputs.     |
| [`inspect_config`](#nemoguardrails-server-experimental-cli-inspect_config)     | Describe selected bindings, not inferred checker or provider capabilities. |
| [`inspect_manifest`](#nemoguardrails-server-experimental-cli-inspect_manifest) | Show effective routes, bound profiles and fixed Rails selections as JSON.  |
| [`main`](#nemoguardrails-server-experimental-cli-main)                         | Enter the server CLI from module invocation or a future console script.    |
| [`schema`](#nemoguardrails-server-experimental-cli-schema)                     | Emit editor JSON Schema from the manifest model, without a second schema.  |
| [`serve`](#nemoguardrails-server-experimental-cli-serve)                       | Run the existing application with fixed bindings and lifespan ownership.   |
| [`validate`](#nemoguardrails-server-experimental-cli-validate)                 | Check manifest data, directories and routing without loading Rails code.   |

### Data

[`app`](#nemoguardrails-server-experimental-cli-app)

### API

```python
nemoguardrails.server.experimental.cli._prepare(
    path: pathlib.Path
) -> tuple[nemoguardrails.server.experimental._configuration.ProxyConfig, fastapi.FastAPI]
```

Validate through existing assembly, suppressing raw validation inputs.

```python
nemoguardrails.server.experimental.cli.inspect_config(
    config: nemoguardrails.server.experimental._configuration.ProxyConfig
) -> dict
```

Describe selected bindings, not inferred checker or provider capabilities.

```python
nemoguardrails.server.experimental.cli.inspect_manifest(
    manifest: pathlib.Path = typer.Argument(..., help='D...
) -> None
```

Show effective routes, bound profiles and fixed Rails selections as JSON.

```python
nemoguardrails.server.experimental.cli.main() -> None
```

Enter the server CLI from module invocation or a future console script.

```python
nemoguardrails.server.experimental.cli.schema() -> None
```

Emit editor JSON Schema from the manifest model, without a second schema.

```python
nemoguardrails.server.experimental.cli.serve(
    manifest: pathlib.Path = typer.Argument(..., help='D...,
    host: str = typer.Option('127.0.0.1', h...,
    port: int = typer.Option(8000, min=0, m...,
    timeout_graceful_shutdown: int = typer.Option(30, min=1, hel...
) -> None
```

Run the existing application with fixed bindings and lifespan ownership.

```python
nemoguardrails.server.experimental.cli.validate(
    manifest: pathlib.Path = typer.Argument(..., help='D...
) -> None
```

Check manifest data, directories and routing without loading Rails code.

```python
nemoguardrails.server.experimental.cli.app = typer.Typer(no_args_is_help=True, pretty_exceptions_enable=False, help='Validate...
```