Hi plasmic team
I want to skip imported projects when syncing a project with the CLI (plasmic sync -p …). How is that possible?
Hi plasmic team
I want to skip imported projects when syncing a project with the CLI (plasmic sync -p …). How is that possible?
Hi @fa_bio
Please try using --non-recursive
flag in your command. It will only sync the specified project and won’t sync dependencies.
You can find additional cli flags by passing the --help
flag as follows
npx plasmic sync --help
plasmic sync
Syncs designs from Plasmic to local files.
Options:
--version Show version number [boolean]
--auth Plasmic auth file to use; by default, uses
~/.plasmic.auth, or the first .plasmic.auth file found
in current and parent directories
--config Plasmic config file to use; by default, uses the first
plasmic.json file found in the current or parent
directories
--yes Automatic yes to prompts. [boolean] [default: false]
-h, --help Show help [boolean]
--projects, -p One or more projects to sync, separated by comma.
Version constraints can be specified using @. Example:
projectid, projectid@>=version [array] [default: []]
--force Force sync to bypass specified version ranges.
[boolean] [default: false]
--non-recursive Do not recursively sync dependencies, only sync the
specified projects [boolean] [default: false]
--force-overwrite Overwrite the skeleton file with newly generated
version. Useful when switching between codegen schemes.
[boolean] [default: false]
--ignore-post-sync Ignore post-sync commands in plasmic.json
[boolean] [default: false]
--skip-upgrade-check Skip upgrade check for Plasmic dependencies
[boolean] [default: false]
--skip-formatting Disables formatting on generated code
[boolean] [default: false]
--skip-buffering Write files directly to disk, instead of buffering and
only writing if sync completes successfully
[boolean] [default: false]
--all-files Sync all files, including those that haven't changed
since last sync [boolean] [default: ""]
--quiet Do not inform each asset to be synced
[boolean] [default: false]