New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@capacitor/cli

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
c

@capacitor/cli

Capacitor: Cross-platform apps with JavaScript and the web

7.1.0
latest
96

Supply Chain Security

100

Vulnerability

77

Quality

100

Maintenance

100

License

Shell access

Supply chain risk

This module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.

Found 2 instances in 1 package

Network access

Supply chain risk

This module accesses the network.

Found 1 instance in 1 package

Dependencies have 1 high alert.

Socket optimized override available

Version published
Weekly downloads
430K
-1.95%
Maintainers
10
Weekly downloads
 
Created
Issues
240

What is @capacitor/cli?

@capacitor/cli is a command-line interface tool for Capacitor, a cross-platform native runtime that makes it easy to build web apps that run natively on iOS, Android, and the web. The CLI provides commands to create, build, and manage Capacitor projects.

What are @capacitor/cli's main functionalities?

Creating a new Capacitor project

This command initializes a new Capacitor project. It sets up the necessary files and directories to start building a cross-platform application.

npx @capacitor/cli create

Adding a native platform

This command adds the iOS platform to your Capacitor project, allowing you to build and run your app on iOS devices.

npx cap add ios

Building the web assets

This command builds the web assets of your Capacitor project. It compiles the web code and prepares it for deployment to native platforms.

npx cap build

Syncing the project

This command synchronizes the web assets and native platform code. It ensures that the latest web code is copied to the native project directories.

npx cap sync

Opening the native IDE

This command opens the native Android project in Android Studio. It allows you to make native code changes and run the app on an Android emulator or device.

npx cap open android

Other packages similar to @capacitor/cli

FAQs

Package last updated on 12 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts