Loading...
Loading...
Create, pull, push, and manage versions of Tapcart blocks and global components using the Tapcart CLI. Use when the user wants to create a block or component, pull blocks from the dashboard, push changes, start a dev server, list versions, or set a version live.
npx skill4agent add tapcartinc/tapcart-agent-skills tapcart-blocks# Block
tapcart block create <BlockFolderName>
# Component
tapcart component create <ComponentFolderName>./blocks./components# Pull all blocks
tapcart block pull -a
# Pull specific block(s)
tapcart block pull -b MyBlock
tapcart block pull -b BlockOne -b BlockTwo
# Pull a specific version of a block
tapcart block pull -b MyBlock -v 2
# Pull all components
tapcart component pull -a
# Pull specific component(s)
tapcart component pull -c ProductCard
tapcart component pull -c ProductCard -c Button
# Pull a specific version of a component
tapcart component pull -c ProductCard -v 3-a-b-c-vcode.jsxconfig.json# Push a specific block (creates new version, not live)
tapcart block push -b MyBlock
# Push and set the new version live immediately
tapcart block push -b MyBlock --live
# Push multiple blocks
tapcart block push -b BlockOne -b BlockTwo
# Push all blocks
tapcart block push -a
# Push a specific component
tapcart component push -c ProductCard
# Push and set live
tapcart component push -c ProductCard --live
# Push all components
tapcart component push -aWarning:makes the new version immediately visible to all app users. Default to pushing without--liveand then using--liveafter the user has verified the result.versions set
# Block dev server
tapcart block dev -b MyBlock
tapcart block dev -b MyBlock -p 4995 # custom port, default is 4995
# Component dev server
tapcart component dev -c ProductCard
tapcart component dev -c ProductCard -p 4996 # default is 4996http://localhost:<port>tapcart block versions list -b MyBlock
tapcart component versions list -c ProductCardtapcart block versions set -b MyBlock -v 2
tapcart component versions set -c ProductCard -v 3