Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

create mobile project from command line

Hello,

I am working on some further automation for creating mobile applications and would need more flexibility how to use the Titanium Mobile tooling/SDK.

Is it possible to create projects (mobile) from the command line? I was able to use the following to create a skeleton project:

 ./project.py TestApp com.test /tmp/appcel iphone

But after import into Titanium Developer (and manually creating a manifest) it does not run in the emulator … as the created project seems to be incomplete.

Would it be also possible to run the emulator and do the other necessary tasks from a command line interface (script)?

Maybe there is a documentation for the SDK which I can't find?

Thanks in advance for your help,
~Wolfgang

— asked April 1st 2010 by Wolfgang Frank
  • mobilesdk
0 Comments

6 Answers

  • Hi there,

    I dived into the details of the titanium_developer source code and found all the JavaScript and Python that is executed to create a new project and to compile the source and run it in the emulator. This looks very cumbersome and nearly impossible to automate these processes as the tooling part of the SDK is very tightly coupled with the UI (Titanium Developer) and the logic for the basic tasks to

    1. create project
    2. compile project
    3. run project in emulator

    seem to be spread widely …

    Aren't there any plain simple CLI scripts (.sh, .py, …) available for the key SDK tasks?

    I am particulary working on a (better) integration into Eclipse of Titanium Mobile … this would allow for a very efficient way to leverage existing development tools, a plugin mechanism and higher productivity. We would be pleased to contribute our work back to the Open Source community but first we might need some help to take the steps to identify the right integration mechanisms with the core tooling of Titanium (without the UI).

    Is there someone who could help?

    Best Regards,
    Wolfgang

    — answered April 7th 2010 by Wolfgang Frank
    permalink
    0 Comments
  • The scripts are driven from Developer http://github.com/appcelerator/titanium_developer you might look there for hints.

    — answered April 1st 2010 by Don Thorp
    permalink
    0 Comments
  • This would be very helpful. The UI application is great for getting started, but it quickly gets in the way of having a nice code/test debug workflow.

    — answered April 8th 2010 by Stefane Fermigier
    permalink
    0 Comments
  • Any news about this?

    — answered July 15th 2010 by Hernan Fernandez
    permalink
    0 Comments
  • Hi there,

    we finally figured it out to do it using the provided .py scripts in the mobilde sdk. After using them we had to patch some artefacts but then we were able to step through the main development processes without the Titanium Developer UI.

    We will do some testing of the approach this week and will share our experience in this forum afterwards.

    Any further tips also welcome …

    ~Wolfgang

    — answered April 8th 2010 by Wolfgang Frank
    permalink
    2 Comments
    • I would like to compile and install Titanium Mobile project from command line. Have you any breakthrough on this area?

      Thanks in advance.

      — commented August 4th 2010 by Lukasz Radziwonowicz
    • Any news on this? Is your code available somewhere?

      Thanks!

      — commented March 7th 2011 by Leo Vernazza
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.