Ioniconf 2022 logo

Uniting our global community of Ionic developers and contributors. May 25, 2022.

DocsPluginsCLI

Capacitor CLI - cap sync

This command runs copy and then update.

npx cap sync [options] [<platform>]

Inputs:

  • platform (optional): android, ios

Options:

  • --deployment: Podfile.lock won’t be deleted and pod install will use --deployment option.

Hooks

The following hooks are available for sync command:

  • capacitor:sync:before
  • capacitor:sync:after

More information

Previous
<- run
Next
update ->
Contribute ->