Capacitor is an open source project that runs modern Web Apps natively on iOS, Android, Electron, and Web (using Progressive Web App technology)
Like Capacitor, Cordova is an open source project that runs web apps across multiple platforms, though not Electron nor web as a Progressive Web App
Capacitor v/s Cordova
First-class Progressive Web App (PWA) Support
Capacitor can use cordova plugin also
Capacitor is relatively new to cordova
Commands:
ionic start myApp tabs --capacitor
ionic build
npx cap add ios
npx cap open ios
npx cap copy
npx cap update
npm run build