Installation
Install the ActivitySmith CLI globally using npm:CLI
Authentication
Set your API key as an environment variable before running commands:CLI
CLI
Quickstart
Send a push notification:CLI
Commands
Push Notification
Sends a push notification to every paired device in your account.CLI
Live Activity: Start
Start a Live Activity and get back anactivityId for updates.
CLI
CLI
Live Activity: Update
Update an existing Live Activity using itsactivityId.
CLI
CLI
Live Activity: End
End a Live Activity and optionally control its dismissal timing.CLI
CLI
Content State
You can provide content state in two ways:- JSON:
--content-state '{...}'or--content-state-file path/to/payload.json - Flags:
--title,--subtitle,--type,--number-of-steps,--current-step,--color,--step-color,--auto-dismiss-minutes
numberOfSteps, currentStep, autoDismissMinutes).
Required Fields
activity start:title,numberOfSteps,currentStep,typeactivity update:title,currentStepactivity end:title,currentStep
Field Reference
| Field | Description |
|---|---|
title | Primary label shown in the Live Activity. |
subtitle | Secondary label shown in the Live Activity. |
type | Layout type. For now: segmented_progress. |
numberOfSteps | Total steps in the progress flow. |
currentStep | Current step index (1-based). |
color | Accent color (lime, green, cyan, blue, purple, magenta, red, orange, yellow). |
stepColor | Color for step segments (same values as color). |
autoDismissMinutes | Minutes before dismissal after ending (default 3, 0 for immediate). |
Output
Use--json to output machine-readable JSON.