Skip to main content

commands.pools

Runtime pool administration commands for Datalayer CLI.

pools_callback

@app.callback()
def pools_callback(ctx: typer.Context) -> None

Runtime pool administration commands.

show_pools

@app.command(name="ls")
def show_pools(token: Optional[str] = typer.Option(
None,
"--api-key",
help="API key (Bearer token for API requests).",
),
runtimes_url: Optional[str] = typer.Option(
None,
"--runtimes-url",
help="Datalayer Runtimes server URL",
)) -> None

List runtime pools with details (admin-only).

set_pool_size

@app.command(name="set-size")
def set_pool_size(size: int = typer.Argument(...,
help="Desired pool size (>= 0)."),
pool: str = typer.Option(...,
"--pool",
help="Runtime pool name."),
token: Optional[str] = typer.Option(
None,
"--api-key",
help="API key (Bearer token for API requests).",
),
runtimes_url: Optional[str] = typer.Option(
None,
"--runtimes-url",
help="Datalayer Runtimes server URL",
)) -> None

Update runtime pool size (admin-only).