Skip to content
Apache Cordova Create
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Add or update GitHub pull request and issue template Feb 11, 2019
.eslintrc.yml CB-12895 : setup eslint and remove jshint Jul 14, 2017
.ratignore added .ratignore Aug 23, 2016
appveyor.yml Update node versions for CI and drop support for node 4 (#12) May 11, 2018
index.js Drop Q, use native promises 🎉 (#33) Sep 30, 2018
package-lock.json GH-10 Updated version and for release 2.0.0 Jan 7, 2019
package.json GH-10 Incremented package version to -dev Jan 7, 2019

Build status Build Status


This module is used for creating cordova style projects. It also incudes support for cordova templates. It can fetch templates from npm and git.


var create = require('cordova-create');

create(dir, id, name, cfg, extEvents);
  • dir - directory where the project will be created. Required.
  • id - app id. Required (but can be "undefined").
  • name - app name. Required (but can be "undefined").
  • cfg - extra config to be saved in .cordova/config.json Required (but can be "{}").
  • extEvents - An EventEmitter instance that will be used for logging purposes. Required (but can be "undefined").

An example of cfg which would fetch a cordova template from npm (or git):

var cfg = {
    lib: {
        www: {
            template: true,
            url: 'cordova-app-hello-world',
            version: ''
You can’t perform that action at this time.