Sencha Cmd side by side installation - extjs

I need to build different Ext Js projects with different Ext Js framework versions. They also need different versions of Sencha Cmd for building (3.0.2.288 and 3.1.2.342). Generally it is possible to install two versions of Sencha Cmd side by side.
Do you think it is save to run multiple versions of Sencha Cmd side by side?

I found the answer in the advanced Cmd documentation, section "Multiple Installed Versions". One can install multiple Sencha Cmd version side by side, AND Sencha Cmd will also try to use the correct version depending on the project. So, its a documentated feature!

Related

Ext js and sencha cmd compatibility matrix

I have ext js 6.5 and sencha cmd 6.2. while trying to create an app with ext js sdk it fails. I would like to know which cmd version is compatible with ext js 6.5 sdk.
There is an outdated Cmd Compatibility Matrix in Sencha Cmd Guides. But, as you can observe from it, the minimum cmd version for Ext JS 5.1.0 is 5.1.0, which means that the previous 5.0.1 Cmd version is not working. There were quite some changes introduced in ExtJS 6.5 and it's not a surprise to me that it doesn't work with Cmd 6.2. You can easily upgrade Cmd by running: sencha upgrade.
If you have other projects that rely on older versions of Cmd (theoretically the latest version would be able to handle them), you can switch easily between versions.
First use the sencha which command that will display the active Cmd version.
Then you can use sencha switch --list command that will display all the version installed on your machine. After that you can easily switch to the required version by running sencha switch %version_number%.

Build Extjs 4.2 application without Ext Libraries

Is there is any way to build Extjs 4.2 application without including the Ext libraries. Till now I have used sencha cmd to generate and build my app. But now the Ext libraries are on server side and I have to build my application without including Ext libraries.
Can I do it using Sencha cmd or any other tool?
Kindly help.
I'm not entirely clear on what the problem is (Ext JS library being "on the server") but yes, you can build an Ext JS application without Sencha Cmd (example is for v5.1, but applies to all versions).
In order to use Sencha Cmd, you do need a copy of the SDK locally. I'm not sure why you can't simply copy it to your local machine (it should be checked into your SVN/Git/etc repo...), but you don't need Sencha Cmd to build a Sencha application.

How to migrate a non sencha cmd application to build using sencha cmd (ExtJS 4.2)

I have an extjs 4.2 application which was built by hand coding controllers, views, stores and models. I was looking for a step by step approach to migrate to sencha cmd and could not find one.
The reasons for moving to sencha cmd are packaging benefits (1 app.js to load instead of 100s of js files), obfuscating/ minimizing code for production, theming, ease of migration to newer extjs versions.
Please let me know what steps you took to migrate to sencha cmd? I am planning to do this (actually tried it and did not succeed):
Start fresh and create a new sencha app using cmd keeping the same Ext.application.name as the hand coded one
Copy all models, views, controllers, stores over to sencha cmd app
Add those models, views, controllers in app/Application.js
Run sencha app watch and it should work
A little guidance or a pointer to how you migrated a non sencha cmd app to a sencha cmd app will help.
Thanks
First of all you need to download Sencha ExtJS and Sencha CMD. After that you need to install Sencha CMD.
Generation ExtJS Build:
run terminal;
sencha -sdk /path/to/extjs-5.x.x generate workspace my-workspace
cd my-workspace
sencha -sdk ext generate app NameApp name-app
cd name-app
sencha app build
Also, if you want to migrate exists application, you can perform the steps listed above, copy your application in workspace and run sencha app build -c production for example

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 stable version

When I got into Sencha Touch world I started using Sencha CMD 5 along with Sencha Touch 2.3.1.
I However, I started to find the 5 versions not stable, they are running into many problems.
I am about to release my App and I am in need for a stable version in all aspects (Production, Native and Testing).
Would it be a good idea to use the latest CMD 4.0.4.84? Is it considered stable?
Yes, Sencha CMD 5 was built for Ext JS 5.
It is recommend to use Sencha Cmd 4.0.4.84 for Touch 2.3 projects.

Resources