Files
letta-server/letta/main.py
2025-10-07 17:50:49 -07:00

19 lines
458 B
Python

import os
import typer
from letta.cli.cli import server
app = typer.Typer(pretty_exceptions_enable=False)
# Register server as both the default command and as a subcommand
app.command(name="server")(server)
# Also make server the default when no command is specified
@app.callback(invoke_without_command=True)
def main(ctx: typer.Context):
if ctx.invoked_subcommand is None:
# If no subcommand is specified, run the server
server()