Sencha cmd

First, extract your SDK zip file to your projects directory. Ideally, this folder will be accessible by your HTTP server. For example, you should be able to navigate to http://localhost/sencha-touch-2.0.0-gpl from your web browser and see the Sencha Touch documentation.

You’ll also need to run the SDK Tools installer. The SDK Tools will add the sencha command line tool to your path so that you can generate a fresh application template among other things. To check you have installed the SDK tools, change to your Sencha Touch directory and type the senchacommand. For example:

$ cd ~/webroot/sencha-touch-2.0.0-gpl/
$ sencha
Sencha Command v2.0.0 for Sencha Touch 2
Copyright (c) 2012 Sencha Inc.

Note: You must be inside either the downloaded SDK directory or a generated Touch app when using the sencha command.

Generating your first app

Make sure you’re still in the Sencha Touch SDK folder, and type the following:

sencha -sdk /path/to/sdk generate app MyApp /path/to/MyApp
$ sencha generate app GS ../GS
[INFO] Created file /Users/nickpoulden/Projects/sencha/GS/.senchasdk
[INFO] Created file /Users/nickpoulden/Projects/sencha/GS/index.html
[INFO] Created file /Users/nickpoulden/Projects/sencha/GS/app.js

It will create new project at ../GS and also create all its hierechy.

This entry was posted in Sencha Touch. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s