+1 to suggestion for adding it as arg to cordova platform add. Could it be as simple as:
cordova platform add path/to/platform/type ? -Michal On Mon, Oct 28, 2013 at 1:56 PM, Ian Clelland <iclell...@chromium.org>wrote: > To be clear, as Michal said, the `cordova` CLI tool *does not* support this > directly; only indirectly, as part of the config.json file. > > The "fourth command line parameter" relates only to the various bin/create > scripts that are part of each platform. The default template that is > overridden with this is the *platform* template, which contains all of the > platform-specific code for a new Cordova project. That's why it isn't > suitable for the multi-platform "cordova create" command. > > It might be possible to make this part of "cordova platform add", but > that's a different (JIRA) issue. > > Ian > > > On Mon, Oct 28, 2013 at 1:44 PM, Michael Sierra <msie...@adobe.com> wrote: > > > Please assign doc fix to me, thanks. Am going to try to keep CLI doc > from > > spinning out of control the more features you guys add to it. ;-) > > > > --Mike Sierra > > > > > > ________________________________________ > > From: Ray Camden [rayca...@adobe.com] > > Sent: Friday, October 25, 2013 4:57 PM > > To: dev@cordova.apache.org > > Subject: Re: create and override of default template > > > > I saw it listed under Apache as well. > > > > Going to file a bug in a minute - let me try this feature first. > > > > On 10/25/13 1:38 PM, "Shazron" <shaz...@gmail.com> wrote: > > > > >Yup, file a doc issue - but I'm not sure if this is a cross-platform > > >thing, > > >or iOS only for now: > > > > > > https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git;a=blobdiff;f=bin > > > >/create;h=244c8a9c1f9264fa11e0a6ebb43336070d40e644;hp=461392e22e6e221cf61d > > > >6b87da356b5cf95bf3f2;hb=4375681;hpb=609e8828107a84e5e755af1bf0cce928f3a48d > > >19 > > > > > >In any case, the 4th param to the bin/create script is the template > > >folder. > > >Not sure if adding a 4th param to "cordova create" passes it on to the > > >platform script. > > > > > > > > > > > >On Fri, Oct 25, 2013 at 9:37 AM, Ray Camden <rayca...@adobe.com> wrote: > > > > > >> According to > > >> (http://cordova.apache.org/blog/releases/2013/10/02/cordova-31.html), > > >>you > > >> can now override the default template when creating a project. From > > >>what I > > >> can see this isn't documented when I run cordova at the command line. > > >> Should I file a bug report for that? Also, I assume the command line > > >>help > > >> will be pretty simple, ie, use override="folder" to use the feature, > but > > >> what will be required in the custom template folder? (If anything.) > > >> > > >> > > > > >