Loading...
Loading...
Guidelines for working with the Knock CLI to manage workflows, templates, and other notification resources in a Knock project.
npx skill4agent add knocklabs/skills knock-clirules/cli-installation-authentication.mdknock initrules/knock-directory-structure.mdrules/cli-commands-reference.mdrules/workflow-templates.mdrules/guides-and-message-types.mdschema_keyschema_variant_keyknock message-type listknock guide listrules/partials.mdpartial.jsoninput_schemavisual_block_enabled: trueknock partial new -k <key> -n "Name" -t html --forceinput_schemaknock partial push <key>datavarsknock workflow push <key>rules/cli-installation-authentication.mdrules/knock-directory-structure.mdrules/cli-commands-reference.mdrules/workflow-templates.mdrules/guides-and-message-types.mdrules/partials.md# Initialize a new project (interactive; use --knock-dir to skip prompts)
knock init --knock-dir=./knock
# Pull all resources from Knock (--force skips confirmation prompts)
knock pull --all --force
# Pull a specific workflow
knock workflow pull <workflow-key> --force
# Push all resources to Knock (push never prompts)
knock push --all
# Push a specific workflow
knock workflow push <workflow-key>
# Push a specific email layout
knock email-layout push <layout-key>
# List channels (discover valid channel_key values before creating workflows)
knock channel list
# Guide and message type commands
knock message-type list # Discover message type keys before creating guides
knock guide list # List existing guides
knock guide push <guide-key> # Push a guide after modifying
knock message-type push <key> # Push a message type after modifying
# Partial commands (email design system building blocks)
knock partial list # List existing partials
knock partial new -k <key> -n "Name" -t html --force # Create a new partial
knock partial pull <key> --force # Pull a partial from Knock
knock partial push <key> # Push a partial after modifying
knock partial validate <key> # Validate a partial locallydatavarsrecipientactortenant--force--force@"content@": "visual_blocks/1.content.md"data.vars.knock channel listchannel_keyknock message-type listdatavars