CLI Commands
Reference for all waypoint CLI commands.
waypoint init
Sets up Waypoint in a git repository. Run from the repo root.
waypoint initWhat it does:
- Updates
CLAUDE.mdwith the instruction to callget_waypoint_contextbefore editing files andlist_waypointsat session start - Updates
.gitignoreto exclude.waypoint/sessions/(sessions live on the server, not in git) - Registers the Stop hook in
.claude/settings.json - Installs the
/pr-summaryslash command in.claude/commands/ - Prompts for server URL and API key if not already configured
Safe to re-run — existing config is not overwritten.
waypoint connect
Configures the server URL and API key for the current user.
waypoint connect <server-url>Example:
waypoint connect https://waypoint.yourcompany.comThe command checks that the server is reachable, then prompts for your API key (input is hidden). Config is saved to ~/.waypoint/config.json with 0600 permissions.
Config can also be set via environment variables, which take precedence over the file:
export WAYPOINT_SERVER_URL=https://waypoint.yourcompany.comexport WAYPOINT_API_KEY=wp_...waypoint generate
Parses an agent session transcript from stdin and posts it to the server.
waypoint generateYou do not normally call this directly — it's invoked automatically by the Stop hook after each session. If you want to replay a transcript manually, pipe it in:
cat session.json | waypoint generateWhat it does:
- Reads the stop hook JSON from stdin (transcript path + session metadata)
- Parses the transcript into structured events (
user_prompt,agent_response,agent_plan,bash_command,file_edit,file_read,tool_use,waypoint_context) - Flags third-party service calls (
bash_commandandtool_useevents involving external CLIs or non-Waypoint MCP tools) - Captures git state (branch, commit, changed files)
- Posts the session to the configured server
If no server is configured, a warning is printed and the session is not saved:
[waypoint] No server configured — session not saved. Run `waypoint connect <url>` to set up.waypoint show
Shows the development history for a file.
waypoint show [filepath]Example:
waypoint show src/auth/middleware.tsIf no filepath is given, shows recent sessions for the current repo. Queries the server (if configured).
waypoint pr-context
Emits session context for the current branch, formatted for the /pr-summary slash command. Called internally by /pr-summary — not typically used directly.
waypoint pr-context