Workrail
⌘K
CLI

CLI Command Reference

Reference for core Workrail CLI commands used day-to-day.

Updated 2026-02-16

Use this page as your day-to-day command reference.

  1. Authenticate
  2. Link repository (or workspace)
  3. Sync
  4. Review entries in the app

Command index

Area Command What it does
Auth workrail auth login Starts browser login and stores local session credentials
Auth workrail auth status Confirms whether this terminal session is authorized
Repo workrail link Links current repository to a Workrail project
Repo workrail repos sync Refreshes local linked-repo list from the API
Repo workrail unlink Removes local repository mapping
Workspace workrail workspace add [path] --depth 8 Tracks all repos under a folder (no backfill)
Workspace workrail workspace list Lists configured workspaces
Workspace workrail workspace remove Removes workspace and unlinks discovered repos
Sync workrail sync Runs incremental sync from last checkpoint
Sync workrail sync --since 7d Backfills recent history for setup/debugging
Entry workrail entry add Create an achievement entry manually
Autosync workrail autosync enable Enables background sync
Autosync workrail autosync status Shows autosync state
Autosync workrail autosync disable Disables background sync
Summary workrail summary daily Generates daily recap
Summary workrail summary weekly Generates weekly summary draft
Summary workrail summary --date 2026-02-11 Generates a daily summary for a specific local calendar day
Summary workrail summary --from 2026-02-01 --to 2026-02-20 Generates an inclusive custom date-range summary
Summary workrail summary --since 20d Generates summary for custom rolling range (max 90 days)

Authentication

BASH
workrail auth login
workrail auth status

Typical use cases

Repository linking

BASH
workrail link
workrail repos sync
workrail unlink

Keep one repository linked to the correct project before syncing.

Workspace commands

Use workspaces when you have multiple repos inside one parent folder.

BASH
workrail workspace add ~/Projects --depth 8
workrail workspace list
workrail workspace remove

Notes:

  • Workspace linking is intentionally no-backfill
  • New repos under that folder are discovered on future syncs
  • Prefer workspace mode for monorepo + service-repo setups

Syncing

BASH
workrail sync
workrail sync --since 7d

Best practice: run workrail sync after your main coding block (for example once daily), then quickly tighten high-impact entries in the app.

Manual entry creation

Use workrail entry add to create achievement entries for work that isn't captured by git sync:

BASH
workrail entry add

This opens an interactive workflow:

  1. Select project - Choose which project this entry belongs to
  2. Title - What did you achieve?
  3. Category - Feature, Bug Fix, Technical Decision, Learning, Mentorship, Meeting, or Other
  4. Impact - Rate from 1 (minimal) to 5 (critical)
  5. Tags - Comma-separated keywords (e.g., "redis, caching, api")
  6. Description - Opens your preferred editor with a template

When to use manual entries

  • Design decisions and architecture discussions
  • Mentorship and code review sessions
  • Team meetings with outcomes
  • Learning and skill development
  • Non-code contributions (documentation, process improvements)

Tips for good entries

  • Write for your future self (6 months from now)
  • Include context: what was the problem?
  • Describe what changed and why it mattered
  • Add concrete outcomes or metrics when possible

Autosync

BASH
workrail autosync enable
workrail autosync status
workrail autosync disable

Use autosync on your primary development machine to reduce manual overhead.

Summary commands

BASH
workrail summary daily
workrail summary weekly
workrail summary --date 2026-02-11
workrail summary --from 2026-02-01 --to 2026-02-20
workrail summary --since 20d

Daily and date-based summaries use your local machine timezone so results match your actual day. Use --from/--to for inclusive date windows, and note custom summary windows are capped at 90 days.

Practical workflows

First-time setup

BASH
workrail auth login
workrail link
workrail sync --since 7d

Daily workflow

BASH
workrail sync

If sync quality looks weak

  1. Improve commit subject clarity.