Repository navigation
Labels
documentationImprovements or additions to documentation
Description
Summary
The CLI regroups its daemon commands by what they act on, in inference-gateway/cli#1968 and inference-gateway/cli#1970 (stacked on it):
infer daemonstarts the daemon andinfer daemon stopstops it. Stop sends SIGTERM to the pid that the lock on~/.infer/run/daemon.pidvouches for, waits for the shutdown, and kills the daemon if it still runs after a minute. The shutdown is graceful for everything the daemon runs: every session worker ends its turn and cleans up, and every scheduled, heartbeat or A2A run shuts down on SIGTERM. With no daemon running, stop says so and exits 0. A pid file no daemon holds is left alone.- The session commands move from
infer daemontoinfer sessions:run,stopandteleport, each taking a<session-id>. - The workspace listing moves from
infer daemon workspacestoinfer workspaces list. infer daemon run,infer daemon stop <id>,infer daemon teleportandinfer daemon workspacesare gone.
Land this with the CLI release that ships both PRs.
Affected pages:
cli.md:- "Starting the daemon": add
infer daemon stopand what its shutdown does - "Workspace lifecycle and cleanup":
infer daemon teleport <conversation-id> --to <workspace>andinfer daemon stop <conversation-id>becomeinfer sessions teleport <session-id> --to <workspace>andinfer sessions stop <session-id> - "Workspace kinds" and "How the daemon dials a workspace (
protocol)":infer daemon workspacesbecomesinfer workspaces list - the command table: replace the
infer daemon stop <id>row withinfer sessions <subcommand>(run,stop,teleport), and add rows forinfer daemon stopandinfer workspaces list
- "Starting the daemon": add
Commands to show:
infer daemon stop # stop the running daemon and everything it runs
infer sessions run <session-id> "continue please" # one turn through the daemon, wherever the session runs
infer sessions teleport <session-id> --to k8s-dev # teleport a session, printing each stage until ready
infer sessions stop <session-id> # stop the agent and delete its remote runtime
infer workspaces list # every workspace in daemon.yaml and whether it is reachableSource: inference-gateway/cli#1968, inference-gateway/cli#1970, inference-gateway/cli#1969.
Acceptance Criteria
-
cli.mddocumentsinfer daemon stopunder "Starting the daemon": the graceful shutdown of session workers and runs, the kill after a minute, and the exit 0 when no daemon runs - Every
infer daemon run,infer daemon stop <id>andinfer daemon teleporton the site readsinfer sessions run,stoporteleport, with<session-id> - Every
infer daemon workspaceson the site readsinfer workspaces list - The command table lists
infer daemon stop,infer sessions <subcommand>andinfer workspaces list, and no longer listsinfer daemon stop <id>
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentation
Type
Projects
- StatusShow more project fieldsDone
Activity
feat(daemon): add infer daemon stop and move the session commands to …
refactor(cli): list workspaces with infer workspaces list (#1970)
edenreich commentedon Nov 24, 2026
@claude can you work on this?
inference-gateway-maintainer commentedon Nov 24, 2026
Claude finished @edenreich's task in 1m 20s —— View job •
docs/issue-1307-20261124-1710• [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-1307-20261124-1710?quick_pull=1&title=Issue%20%231307%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%231307%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)Docs for
infer daemon stop,infer sessionsandinfer workspaces list- donecli.mdbun run lint:md,bun run format:checkandbun run buildall passChanges in
cli.md:infer daemon stop. It covers the SIGTERM to the pid that thedaemon.pidlock vouches for, the graceful shutdown of session workers and of scheduled, heartbeat and A2A runs, the kill after a minute, the exit 0 when no daemon runs, and that a pid file no daemon holds is left alone.infer sessions teleport <session-id> --to <workspace>andinfer sessions stop <session-id>.protocolsection:infer daemon workspacesnow readsinfer workspaces list.infer daemon stop <id>row is gone. There are new rows forinfer daemon stop,infer sessions <subcommand>(run,teleport,stop) andinfer workspaces list.No other page used the old commands.
infer sessions runappears only in the command table because no section of the docs walks through it yet.PR #1308 should merge together with the CLI release that ships the regrouped commands.