Cordova plugin install from local file system

13,283 views
Skip to first unread message

Geoffroy Gomet

unread,
Oct 10, 2013, 2:56:30 AM10/10/13
to phon...@googlegroups.com
Hi,

I'm new to cordova development.

Is it possible to install a plugin from the local file system (cordova plugin add /path/to/my/plugin/) instead of using git?
I did not find anything on the subject anywhere.

After that,I would like to publish the same plugin for re-use and sharing in different projects on a subversion repository.
But for testing/learning purposes, I would like to start with a local directory.

Regards

Geoffroy

Marcel Kinard

unread,
Oct 11, 2013, 1:27:00 PM10/11/13
to phon...@googlegroups.com
Yes, it is possible. Just specify the directory where the plugin's "plugin.xml" file is located. For example,
cordova plugin add ../path/to/my/plugin

That explanation is missing in the docs. I will add it.

Geoffroy Gomet

unread,
Oct 11, 2013, 2:34:42 PM10/11/13
to phon...@googlegroups.com
Thank you Marcel.

It works indeed, I was able to install a home made plugin from the file system.

Regards

Op vrijdag 11 oktober 2013 19:27:00 UTC+2 schreef Marcel Kinard:

Marcel Kinard

unread,
Oct 11, 2013, 2:50:10 PM10/11/13
to phon...@googlegroups.com
Updated docs are at http://cordova.apache.org/docs/en/edge/guide_cli_index.md.html#The%20Command-line%20Interface (you may need to tell your browser to refresh). There is quite a bit in the "cordova plugin add" uri.

Geoffroy Gomet

unread,
Oct 11, 2013, 2:57:28 PM10/11/13
to phon...@googlegroups.com
That was fast :-)

Thanks again!
Reply all
Reply to author
Forward
0 new messages