Use the Sencha Cmd webserver?

Posted on in Environment Ext JS Sencha Sencha Touch

Did you know, that you can run a local server with Sencha Cmd (Sencha Command line tools)?
Sencha Cmd 3.1.* has a build in Jetty 8.1.7 web server. You can start it in your command line.

Start your HTTP file server:

sencha fs web -p 80 start -map /path/to/webroot/

While running open a new command prompt / terminal window, for using Sencha Cmd (or to stop it.)

Stop your HTTP file server:

sencha fs web -p 80 stop


  1. James Bebbington says on
    October 9, 2013 at 3:23 pm

    Thanks for this. Does the sencha web server do anything special or could I just set up an apache vhost to do the same thing instead?

  2. Lee says on
    October 23, 2013 at 12:02 pm

    Hi James, No the Sencha webserver doesn’t do anything extra. It’s just a nice lightweight Jetty server…

  3. loki says on
    April 4, 2014 at 3:15 pm

    hi thanks lee 🙂

  4. Brian says on
    July 12, 2014 at 1:41 am

    Thanks for this info!

    I also found it helpful to launch the webserver in the sdk folder:
    $ sudo sencha fs web -p 80 start -map /touch-2.3.1/

    Once the server starts, you can go to http://localhost/ and view the built-in documentation and get to the sencha touch examples at the bottom of the page. The examples include the Kitchen Sink app, etc. All the example code is local and you use it as a place to start your own projects.

    Once you’ve mapped it that way, you can also go directly to the examples at: http://localhost/examples/

  5. Chad says on
    August 7, 2014 at 9:37 am

    Is it possible to configure https with openSSL in Sencha Cmd?

  6. J Santos says on
    September 5, 2014 at 6:01 am

    Hi Lee,

    I am on IIS and it’s working fine for .net projects. Java, Chrome, Ruby already installed. So are sencha cmd and sdk tools.

    1. I am stuck and I have no idea where to extract touch zip file.
    2. I got the error WARN the current working directory c:.. .is not a recognized sencha SDK or application folder. Running in backwards…

    So now I just uninstalled all the sencha files.
    Can you please bring me through the correct process? Thanks.

    • Lee says on
      September 5, 2014 at 6:36 am

      Hi J,

      I’m not sure if I understand your questions correctly, (what are you trying to do? Starting the Sencha Cmd server? Or just running a Sencha Touch app in general?)

      1) When using IIS as a webserver, you should extract the sencha touch sdk, in the webroot.
      (In case your plan was to use Sencha Cmd as a webserver, you can extract the touch sdk anywhere you like as soon as you run the webserver start command from your Sencha (app) folder.)

      2) You will need to make sure Sencha Cmd is correctly installed. (usually it’s just running the Cmd installer), however the “sencha” keyword, needs to be available in your “PATH” variables.
      You can test this by running the following command from the command-line: “sencha which”. If it returns you a Sencha version number, the installation went correct.
      If not; try to add Sencha to your variables; or re-install Cmd.

      I wrote a very good guide for Sencha Architect on the Sencha site; some of the stuff might be handy for Sencha coding projects too. Please see this:

      Hope this explains!


  7. Mohammedi mohamed says on
    September 5, 2014 at 9:34 pm

    Really tank you.

Post a Comment

Your email is never published nor shared.
Required fields are marked *