@eventflo/capacitor-cli
v8.0.0-alpha.0-eventflo.1
Published
Capacitor: Cross-platform apps with JavaScript and the web
Maintainers
Readme
🍴 eventflo Fork
This is a maintained fork of @capacitor/cli by the eventflo team.
Why This Fork?
- ✅ Guaranteed maintenance for event-critical operations
- ✅ Immediate security patches and bug fixes
- ✅ Custom eventflo-specific enhancements
- ✅ 100% API compatibility with original
Installation
npm install @eventflo/capacitor-cliOriginal Package
This fork is based on @capacitor/cli
Capacitor CLI
The Capacitor command-line interface (CLI) is a tool for creating and managing Capacitor applications. While it can be installed globally, it's recommended to install it locally in your project and execute through npm scripts.
Installation
Project Installation (Recommended)
Install the CLI locally in your project:
npm install @capacitor/cli --save-devGlobal Installation
While not recommended for project use, you can install the CLI globally:
npm install -g @capacitor/cliUsing Capacitor CLI
The CLI can be used through the capacitor or cap command. When installed locally, use it through your project's npm scripts or npx.
Common commands:
cap init: Initialize a new Capacitor projectcap add: Add a native platform (ios, android)cap sync: Sync your web code to your native projects
For detailed information, consult the Getting Started guide.
Local Development
If you're contributing to the Capacitor CLI or testing local changes:
Clone and setup:
git clone https://github.com/ionic-team/capacitor.git cd cli npm installBuild the CLI:
npm run buildCreate a local link:
npm linkDevelopment workflow:
- Run
npm run watchto automatically rebuild on changes - Use
capacitororcapcommands to test your changes - Run
npm testto execute the test suite
- Run
Debugging
Using VS Code Launch Configurations
The CLI includes VS Code launch configurations for debugging. To debug a CLI command:
- Open the project in VS Code
- Right now we don't have debugging working in the ts files, so select one of the .js files inside of /dist/**.js
- Place a breakpoint
- Press F5 or go to Run > Start Debugging
- Select a launch config and run filling out the path you want to run the cli in, and the command that you want run.
You can add more configurations by copying and modifying the existing ones in .vscode/launch.json.
Contributing
Contributions are welcome! Please read our Contributing Guide for details.
