CLI wrapper for the ActivitySmith API using the official Node SDK.
npm install -g activitysmith-cliSet ACTIVITYSMITH_API_KEY or pass --api-key.
activitysmith --helpactivitysmith push \
--title "Build Failed" \
--message "CI pipeline failed on main branch"activitysmith activity start \
--content-state '{"title":"Deploy","subtitle":"start","numberOfSteps":4,"currentStep":1,"type":"segmented_progress","color":"yellow"}'Or use flags:
activitysmith activity start \
--title "Deploy" \
--subtitle "start" \
--number-of-steps 4 \
--current-step 1 \
--type segmented_progress \
--color yellowactivitysmith activity update \
--activity-id "<activityId>" \
--content-state '{"title":"Deploy","subtitle":"step 2","currentStep":2}'Or use flags:
activitysmith activity update \
--activity-id "<activityId>" \
--title "Deploy" \
--subtitle "step 2" \
--current-step 2activitysmith activity end \
--activity-id "<activityId>" \
--content-state '{"title":"Deploy","subtitle":"done","currentStep":4,"autoDismissMinutes":3}'Or use flags:
activitysmith activity end \
--activity-id "<activityId>" \
--title "Deploy" \
--subtitle "done" \
--current-step 4 \
--auto-dismiss-minutes 3activitysmith push --title "Hello" --jsonThe CLI installs two bin names:
activitysmith(recommended)activitysmith-cli(alias)
For activity start|update|end, you can pass content state via JSON:
--content-state <json>--content-state-file <path>
Or use flags to build the payload:
--title <title>--subtitle <subtitle>--type <type>--number-of-steps <number>--current-step <number>--color <color>--step-color <color>--auto-dismiss-minutes <number>
Required fields:
activity start:title,numberOfSteps,currentStep,typeactivity update:title,currentStepactivity end:title,currentStep
Use --json for machine-readable output.