Sencha Touch - unable to create first application

I just downloaded Sencha Touch 2.1.0 and Sencha CMD v.3.0.2.288. I extracted the Sencha Touch SDK into the MAMP htdocs folder. When I tried to follow the getting started guide,

sencha app create MyApp ../MyApp

gives an error

Sencha Cmd v3.0.2.288
[ERR]       No such property : 'create'

I assume the argument is createnot available in this version of Sencha Cmd. I tried

sencha app build MyApp ../MyApp

I get an error

Sencha Cmd v3.0.2.288
[ERR]       'MyApp' not in valid range: [native, package, testing, production]
[ERR]       Illegal value : MyApp

Any idea what went wrong?

+5
source share
1 answer

To create a new application, you need to:

cd path/to/sencha-touch-2.1/directoryand then run:

sencha generate app MyApp path/to/MyApp

Then to create your application:

cd path/to/MyApp and run:

sencha app build native

+12
source

All Articles