name: pull-content-source
description: Pulls remote content source files to the local project directory. Use when you need to fetch or update local copies of content from the server.
argument-hint:
Pull remote content of kind $0 with name $1 to the local project directory.
Steps
Detect the local folder first by invoking the
detect-local-content-folderskill with arguments$0 $1.Pull the content:
- If a local folder was detected at
<folder>, pull into it:labctl content pull $0 $1 --dir <folder> --force - If no local folder was detected, pull with the default directory naming:
labctl content pull $0 $1 --dir $0s/$1 --force
- If a local folder was detected at
The --force flag overwrites existing local files without confirmation.