Ecstore How to run the cmd command in the win environment

Source: Internet
Author: User

Most programmers use the Windows development environment to do ecstore two development, and often need to use Ecstore's own cmd command for some system operations, such as clearing the cache (Cacheclean), Upgrading the program (update), creating a new app (create APP) and more. However, the execution of the Cmd.bat command is not supported by default in the Iis+php+mysql+zendloader development environment, or in an environment similar to the integrated package deployment of Wamp, LNMP, and lamp.

To enable the Windows Development environment to use the Ecstore cmd command, you must configure Windows environment variables to support MySQL and PHP commands. Today I share the method of configuring environment variables.

First, add PHP to the environment variable, do not have to go to the PHP directory every time

① Right-click My Computer-Properties-advanced-environment variables

② Find path This item (may need to scroll down to find), the mouse double-click the path, the last or the first to add your PHP directory and class library and the MySQL database bin directory where the path, including the previous ";". For example: E:\PHPSTUDY\PHP53; E:\phpStudy \php53n\ext\; E:\phpStudy\MySQL\bin; (Note: The author is using the development environment created by Phpstudy and installed on the e-drive.) )

③ Click on the "New" button and enter "PHPRC" in "Variable name", enter the directory where the php.ini file is located in variable value (for example: E:\PHPSTUDY\PHP53), this step is to let Windows find php.ini.

④ Restart the computer, the environment variable is in effect.

Second, the Ecstore common cmd command Daquan:

Exit exits
Man Display Help
SH Execute operating system command
Mkconfig creating a config file
LS Lists all applications
CD Switch Current app
Install app
Install_product Installing the Product
Install_demodata installation of initialization data
Active_cetificate Activation Certificate
active_node_id activating node_id
inactive_node_id Deactivate node_id
Cleanunicom Clearing the association with the Shopex User Center
Uninstall uninstalling Apps
Pause suspend App
Active Open App
Update upgrade Application
Trace turn on/off performance detection
Status Display System state
Search in the Library
CreateProject Creating a new project
Kvrecovery Kvstore Data Recovery
Kvdelexpires Kvstore Erase expired data, turn on persistent feature valid
Cacheclean clearing the cache
Configcompat config-compatible configuration detection
Crontab running a scheduled task
Crontablist List all current crontab
Crontabexec perform the specified scheduled task, the task name needs to be listed in Crontablist

Commands provided by the app:-------------------------------------------------------

B2c:vcat build to create virtual categorical data
Suitclient:sync sync_user Sync Suite User
Image:resize filesystem filesystem Picture Regeneration
Image:resize refreshmodify Force Refresh picture Latest update time
Site:theme checkwidgets Check Template Pendant
Site:sitemap Create Refresh Sitemap
Dev:new app add an app
Dev:new Controller Generation Controllers
Dev:new model Layer class generation
Dev:show Services displays the registered service
Dev:show viewtags Show all available template tags
Dev:show classfile Display the file address of the class
Dev:show depends build installed app dependency diagram, Graphviz format
Dev:project Create New Project
Dev:test Do execution test cases
Dev:create app to create a new app
Dev:check Check//todo performing code checks
Dev:detect Ecos Detection Basic Environment
Dev:doc Update Execution Test Cases
Dev:doc DD Generate Data dictionary
Dev:syscheck Allcheck System Environment detection
Dev:generate new Add an app, etc.
Dev:generate Controller Generation Controllers
Dev:generate model Layer class generation
Base:token Show Direct API "token value"
base:i18n Create_convert Generate Replacement file app_id (etc:base) | This command updates the default language PO package, please use it with caution
Base:task list lists all scheduled tasks
Base:task exec performs tasks as planned
Base:queue list//todo List all queue tasks
Base:queue Flush//todo Perform all queue tasks immediately
Base:queue EXEC//todo performs the specified queue task
Base:queue clear//todo Clear all queue tasks
Base:queue Active//todo activating a task
Base:queue Disable//todo Pause a task
Apiactionlog:cleandata cleandata Delete outdated apilog data

Native PHP command----------------------------------------------------------------

Enter the command if you are using a semicolon [;]  End, it is considered to be a PHP statement. For example:
1> $a = 2;
Int (2)
2> POW ($a, 8);
Int (256)

Ecstore How to run the cmd command in the win environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.