AvocadoJS CLI
The AvocadoJS command-line interface should be installed locally and executed through npm
scripts.
npm install @avocadojs/cli --save-dev
Local Commands
Below is an example of running Avocado commands from a webapp's npm scripts within the local package.json
file.
package.json scripts
scripts: {
"build": "tsc && npm run sync",
"create.android": "avocado create android",
"create.ios": "avocado create ios",
"doctor": "avocado doctor"
"open.android": "avocado open android",
"open.ios": "avocado open ios",
"sync": "avocado sync"
}
CLI Commands
sync [platform] updates + copy
update [platform] updates the native plugins and dependencies
copy [platform] copies the web app build into the native app
open [platform] opens the native project workspace
create [platform] create a native project
doctor [platform] checks for common errors
plugin:generate start a new avocado plugin
Related Projects
License