Sencha cmd not opening - extjs

Hi I want to learn Sencha. I have basic knowledge of MVC. I have downloaded sencha Touch and Sencha cmd. I have extracted sencha Touch folder to my local. And I have installed Sencha cmd. But Sencha cmd is not working. When I click on cmd it automatically disappeared. What can I do now. I have installed Sencha SDK Tool.
Any one please help me out.

There is a series of videos on how to prepare your computer for development here: http://extjs.eu/videos

After installing Sencha cmd in windows you need to set Environment variables.
Open start menu
Click on computer > Right click Properties.
In properties > click on Advance setting.
In Advance setting click on environment variable.
Here you select path and click on edit and add the path of the sench cmd.
Go back to cmd and run sencha.
Here you will get all the sencha details. if you get means sencha is installed properly.

At first you have to download the cmd(Which you have done). Then do the followings:
It is a zip file. Extract it.
Then you will get a .run file(If using ubuntu) or .exe file(In Windows).
Double click this file and install it. (For Ubuntu, first you have to change permission of this file to 777 using chmod 777 .run/file/path and then double click).
Now you can run sencha in terminal and check whether it has successfully been installed or not.

Goto command promt and type sencha . if your sencha cmd is installed properly ,you will see data on your promt. if it says that sencha command not found,try reinstalling sencha cmd

there is no need to open sencha cmd and sdk if you have correctly installed sencha cmd then go to command promt and type sencha if it's show version and other help command then it's properly installed.
then go to your sdk path and create app by sencha generate app app_name folder_name or path where you want to create your application.

A real case: Sencha v6.5.3.6 on Windows 10 professional x64. From CMD, you run
C:\Users\computer_user_name\bin\Sencha\Cmd\sencha
I must point out full path of sencha.exe for running.

Related

Sencha CMD 6.5 does not create 'bootstrap.js'

I'm using Ubuntu 16.04 and running this command below, inside ExtJS SDK folder;
root#nuri:/opt/lampp/htdocs/ext-6.5.0# sencha generate app MyApp ../demoapp
Sencha CMD runs and finishes without any problem and it keep displays only one line message:
[INF] Copying framework to /opt/lampp/htdocs/demoapp/ext
It creates the folder "demoapp" named as in command but bootstrap.js is missing! Thus I can not run the demo app with browser.
All I've noticed; I can not run the sencha command in terminal without root. It keep says sencha command not found. Therefore I'm switching to root with su command and then I'm being able to run sencha command.
UPDATE:
I've tried this command from Sencha CMD docs but still it doesn't create bootstrap.js
sencha -sdk /path/to/ext6 generate app MyApp /path/to/my-app
As well tried thorugh another Folder, inside /Home but still same!
and the solution:
I've ran sencha app build command in terminal, inside the demoapp
folder and then sencha app watch.
CMD created requried json files as well bootstrap.js and now I can display it.
Conclusion: Do not wait for build and watch command to run application on browser! Just do it after generation step...

how to create an Extjs app using sencha cmd

I am new to sencha. I need to work on ExtJS and would like to create an app using sencha cmd. I have tried many things but not getting a clear info to create an app with sencha cmd.
Please help me by treating as a beginner to build an application.
Also after the installation of sencha cmd how can we start this to run sencha commands? When I try any command in normal terminal it shows me 'sencha is not recognized' in windows PC. Also I've given the sencha cmd path in the environment variable PATH.
After you fix the PATH problem and when sencha works, run
sencha generate app YourNameSpace /where/you/want/it
Run this command in ext directory - where you unzipped Ext.
For more details see http://extjs.eu/videos
Along with Path variable try to create another variable
SENCHA_CMD_5_0_0 and set the location of your sencha cmd
after doing this sencha cmd path will present in both path and sencha_cmd_5_0_0 variables
Sencha cmd is a Java Application, be sure you have Java SDK or JRE installed, also add the path to Sencha Cmd executable to your PATH environment variable, (My PC properties/Advanced/Environment VAriables), read the install documentation carefully.
Download Sencha SDK GPL or try the commercial version.
You could start generating a basic app or using a predefined template:
$ sencha -sd path/to/ext-6.x generate app APP_NAME path/to/project
A good starting point for more advanced applications is using the package templates, i.e the Admin Dashboard:
$ sencha -sd /path/to/ext-6x generate app -s /path/to/ext6.x/templates/admin-dashboard/ APP_NAME /path/to/project
You should run $ sencha package upgrade if required.

Sencha Cmd ERR Invalid Path (Trial Version)

When I try to generate an ExtJS app with my trial installation it fails. It worked in the beginning. Here is what I get:
sencha generate app -ext sampleName F:\vs13\sampleName
Sencha Cmd v5.1.0.26
[INF] Loading framework from F:/../../../../../ext
[ERR] Invalid Path : F:\..\..\..\..\..\ext
Since it is a trial version it should automatically download the framework.
This will automatically download the Ext JS Commercial Trial package and use it to generate your application.
According to the documentation this is the syntax:
sencha generate app -ext MyApp /path/to/MyApp
Also I checked the path variable which includes the path to the Sencha Cmd installation:
PATH=F:\ExtJs\bin\Sencha\Cmd\5.1.0.26;
I tried to restart the development machine. It did not help.
Any suggestion to solve the error "Invalid Path"?
Did you move Sencha Cmd installation? That could be the reason because Ext library is downloaded only for the first application you create and it is cached in the Cmd installation tree. Next applications you create use this cached Ext. If you moved Cmd then it cannot find path to the cached Ext.
You can also try to uninstall Sencha Cmd and install it again.

Sencha Touch CMD installation issues

I have a MAMP server running on the Mac.
in the directory path: /Applications/MAMP/htdocs/MyApp/sencha-touch-2.2.0-gpl/ my SDK is copied.
I downloaded the latest Sencha CMD tool from the sencha touch website: http://www.sencha.com/products/sencha-cmd/download for Mac version 3.1.1 for Mac
On installing the Sencha CMD tools: I chose Administrator/bin/ folder to install it into. It got installed successfully.
After that, I opened the Terminal window of the Mac, navigated to the SDK folder and typed the sencha command. I got the following issues:
The Sencha CMD is not reflecting the correct version.
Also, the same warning error pops up when I try to create a new Sencha App.
Could anyone please guide the correct method of installing Sencha CMD or is there any thing I have missed out?
Thanks,
Ankit Tanna.
For me it's all in ~/.bash_profile.
Open it with a text editor. Then you should remove the path to the SDK tools and add the path to the Sencha CMD if it's not there yet.
For example, in my ~/.bash_profile, I have
# export PATH=/Users/titouanvanbelle/bin/Sencha/Cmd/3.0.2.288:$PATH
export PATH=/Users/titouanvanbelle/bin/Sencha/Cmd/3.1.1.274:$PATH
I commented the path to an older version instead of removing it in case I need it again.
Hope this helps
I have the same problem with the bash
I do that you said but the only way that I can activate sencha is create an alias
sencha=/Users/AppDev/bin/Sencha/Cmd/3.1.2.342/sencha

How do i setup sencha touch 2 on windows 7 properly. I am try but can't

There is on problem occur on my CMD. when i am try to setup Sencha touch 2.There is show this kind of error
You need to run the command at sencha sdk folder not sencha-touch-2 as you can see in the warning
Beside that I'd suggest you upgrading to sencha touch version 2.1 since it has a lot of enhancements. To run command in this version you need to download Sencha Cmd since Sencha SDK tools has been deprecated in this version and here is the guide on how to use this Sencha Cmd.
Hope it helps :)
Follow the following step by step -
step 1 - Download all the sencha related SDKs if you dont have from here
step 2 - extract "sencha-touch-2.3.0-gpl.zip" to your project directory. and install the SenchaCmd and sencha SDK tools on your machine.
step 3 - open you command prompt and type sencha and enter.
if you see the output like - Sencha Cmd v4.0.1.45 the everything is OK. other wise may be its a problem with your installation.
step 4 - Now you have to create a blank sencha touch app - go to the command prompt and write the following command -
C:\inetpub\wwwroot\touch-2.3.0>sencha -sdk "location path where you have extracted the SDK" gen
erate app MyApp "Location path where you want to create the app"
for example in my case this is like - "C:\inetpub\wwwroot\touch-2.3.0>sencha -sdk "C:\inetpub\wwwroot\touch-2.3.0" gen
erate app MyApp "C:\inetpub\wwwroot\ITK_2.0""
step 5 - host the app on your web server (I am using IIS 8 on my windows 8 machine) and hit the URL "localhost/MyApp/".
thats all.
Happy Coding.
It is a warning not an error. You can find more about the command line tool # here

Resources