I’m planning to write a number of posts documenting my adventures through the new Cordova (aka Phonegap, though there are differences) command line interface, known as Cordova CLI. I am in the midst of working on a Cordova application and have been using Cordova CLI heavily for a while now. My focus has been on the Android platform, though we plan to release to iOS as well, so that will be where the majority, if not all, of my examples are.
These posts only cover cordova cli 2.9. Cordova 3.0 is an overhaul that changes how the core Cordova app is assembled, and therefore has different constraints.
Here’s a list of what I plan to cover:
- What is Cordova CLI
- Alternatives to Cordova CLI
- Installing And Using Cordova CLI
- Placing Cordova CLI projects under version control
- Upgrading projects managed with Cordova CLI
- Hooks and Cordova CLI
- Configuration management using Cordova CLI
- Setting up CORS
- Platform specific configuration files with Cordova CLI
- How to set up a new plugin for use with Cordova CLI
- How to ‘plugman’ify an existing plugin
- Releasing with Cordova CLI
Be aware that Cordova CLI is early beta software. This is bad because you’ll run into issues; this is good because the software is under active development, and I’ve found the developers to be quite responsive to bug reports. I have occasionally filed a bug one day, and had a fix to download the next.
There are also areas where Cordova CLI has significant deficiencies–luckily they’ve built the software to be flexible enough you can work around it (or, if you can contribute fixes, they are happy to accept help). So, if you plan to use Cordova CLI, make sure you bookmark the issue tracker. Consider joining that jira and submitting bugs, but at the least search it when you run into an issue.
In the next post, I’ll discuss alternatives to Cordova CLI.