Skip to main content
Version: v4

Capacitor CLI - cap sync

This command runs copy and then update.

npx cap sync [options] [<platform>]


  • platform (optional): android, ios


  • --deployment: Podfile.lock won't be deleted and pod install will use --deployment option.
  • --inline: After syncing, all JS source maps will be inlined allowing for debugging an Android Web View in Chromium based browsers.


The following hooks are available for sync command:

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

More information