Skip to content

Latest commit

 

History

History
86 lines (57 loc) · 1.73 KB

cli.md

File metadata and controls

86 lines (57 loc) · 1.73 KB

CLI

All commands follow the pattern ember cordova:{command}. You can use the cdv alias insted ofcordova, for example ember cdv:{command}.

You can pass a command to cordova without ember-cordova interference with ember cdv build, vs. ember cdv:build.

Available Commands

  • ember cdv:open
  • ember cdv:build
  • ember cdv:link
  • ember cdv:prepare
  • ember cdv:serve
  • ember cordova

Open

Description

Open the native platform project with the default or specified application

Available options

  • platform (default:ios)
  • application (default:system default application)

Examples

  • ember cordova:open
  • ember cordova:open --platform=android --application=eclipse

Build

Description

Build the ember and cordova project together running in the simulator or on a device

Available options

  • environment (default:development)
  • platform (default:ios)

Examples

  • ember cordova:build
  • ember cordova:build --environment=production --platform=ios

Link

Description

Symlinks your dist/ to Cordovas www. You generally won't need to run this, as build will do this for you.

Examples

  • ember cordova:link

Prepare

Description

Handles running prepare, but will also fire the beforePrepare/afterPrepare hooks.

Examples

  • ember cordova:prepare

Serve

Description

Runs the Ember Server for live reload. To learn more, read here.

Available options

  • platform (default:ios)
  • reloadUrl (default:localhost:4200)

Examples

  • ember cdv:serve
  • ember cordova:serve --platform=android --reloadUrl=192.168.1.1

Cordova

Description

Passes commands straight to cordova, without interference.

Examples

  • ember cordova platform add ios