Socket
Socket
Sign inDemoInstall

@capacitor/cli

Package Overview
Dependencies
Maintainers
5
Versions
832
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@capacitor/cli

Capacitor: Cross-platform apps with JavaScript and the web


Version published
Weekly downloads
260K
decreased by-15.05%
Maintainers
5
Weekly downloads
 
Created

Package description

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

Readme

Source

AvocadoJS CLI

The AvocadoJS command-line interface should be installed locally and executed through npm scripts.

npm install @avocadojs/cli --save-dev

Local Commands

Below is an example of running Avocado commands from a webapp's npm scripts within the local package.json file.

package.json scripts

  scripts: {
    "build": "tsc && npm run sync",
    "create.android": "avocado create android",
    "create.ios": "avocado create ios",
    "doctor": "avocado doctor"
    "open.android": "avocado open android",
    "open.ios": "avocado open ios",
    "sync": "avocado sync"
  }

CLI Commands

sync [platform]    updates + copy
update [platform]  updates the native plugins and dependencies
copy [platform]    copies the web app build into the native app
open [platform]    opens the native project workspace
create [platform]  create a native project
doctor [platform]  checks for common errors
plugin:generate    start a new avocado plugin
  • AvocadoJS CLI - AvocadoJS Command-line interface
  • Ionic - UI Library
  • StencilJS - Web Component Generator

License

Keywords

FAQs

Package last updated on 11 Jan 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc