Skip to main content

Activity

cmd/crewship/cmd_activity.go wraps GET /api/v1/activity. The server merges three sources (assignments, peer conversations, escalations) into a single list, descending by created_at, narrowable by crew. Anything beyond that (free-text search, type filter, time window) is applied client-side after the page lands — the endpoint itself has no type= or since= parameter, and there is intentionally no SSE stream. For a live tail of granular events, use crewship journal --follow or its shortcut crewship watch.

crewship activity

FlagTypeDefaultEffect
--crew <slug-or-id>string(unset)Narrow to a single crew. Server-side filter via crew_id.
--lines <n>int50Page size. The server caps at 100.
--type <substring>string(unset)Client-side filter by activity type substring (case-insensitive).
--since <window>string(unset)Client-side filter — 1h, 24h, 7d, or RFC3339 timestamp.
--export <fmt>string(unset)Dump the current page: ndjson or csv. Wins over --format.
--out <path>string(unset)Write --export output to file (default: stdout).

Examples

crewship activity
crewship activity --crew backend-team --lines 100
crewship activity --type escalation --since 24h
crewship activity --export ndjson --out activity.ndjson
crewship activity --export csv > activity.csv
Default output is a coloured one-line-per-event table with timestamps, type tag (ASSIGNMENT, COMPLETED, ESCALATION, QUERY, RESPONSE), crew slug, and summary.

Common errors

  • bad --since: <reason> — value did not parse as 1h/24h/7d or RFC3339.
  • --export must be ndjson or csv (got "xlsx") — only those two shapes are supported.
  • open --out: <fs error> — destination file path is unwritable.

See also