How apache/cordova-cli works
Project type and purpose
• This is a Node.js–based command‐line interface (CLI) tool called “Cordova CLI.”
• Its purpose is to orchestrate, build, deploy, and manage Apache Cordova–based mobile projects: parsing user commands, delegating tasks to cordova-lib and platform toolchains (Android, iOS, etc.), and managing plugins.
File structure
• Top-level “bin/cordova” and “bin/cordova.cmd”: the executable shims/users invoke.
• “src/”: core JS modules that implement command parsing (cli.js), help text (help.js), info commands (info.js), and route subcommands.
• “scripts/cordova.completion”: shell completion support.
• “doc/”: per-command usage guides.
• “spec/”: Jasmine test specs for each command and helpers.
• Config and metadata: package.json, .eslintrc.yml, GitHub workflows, CONTRIBUTING, etc.
Extract insights from README
• Confirms it’s purely a CLI orchestrator.
• Delegates most functionality to “cordova-lib” for platform/plugin logic.
• Targets multiple mobile platforms via plugin/adapter pattern.
• Integrates with external toolchains (Gradle, Xcode, Android SDK).