Command Line

Navigation:  Python and Ruby Selector >

Command Line

Previous pageReturn to chapter overviewNext page

All the actions mentioned in Deploy and Settings section can be performed from the command line:

 

To create application run:

 

/usr/bin/selectorctl --interpreter=<python|ruby> --version=VERSION [--user=USER] [--print-summary] [--json] --create-webapp <FOLDER_NAME> <URI>

 

To delete application:

 

/usr/bin/selectorctl --interpreter=<python|ruby> [--user=USER] [--print-summary] [--json] --destroy-webapp <FOLDER_NAME>

 

To change application folder name:

 

/usr/bin/selectorctl --interpreter=<python|ruby> [--user=USER] [--print-summary] [--json] --relocate-webapp <FOLDER_NAME> <NEW_FOLDER_NAME>

 

To change application URI:

 

/usr/bin/selectorctl --interpreter=<python|ruby> [--user=USER] [--print-summary] [--json] --transit-webapp <FOLDER_NAME> <NEW_URI>

 

To change application interpreter version:

 

/usr/bin/selectorctl --interpreter=<python|ruby> [--user=USER] [--print-summary] [--json] --set-user-current --version=<NEW VERSION> <FOLDER_NAME>

 

To set application WSGI handler (Python only):

 

/usr/bin/selectorctl --interpreter=python [--user=USER] [--print-summary] [--json] --setup-wsgi=<file_path:callable> <FOLDER_NAME>

 

To install modules to application environment:

 

/usr/bin/selectorctl --interpreter=python [--user=USER] [--print-summary] [--json] --enable-user-extensions=<module1[,module2...]> <FOLDER_NAME>

 

To remove modules from application environment:

 

/usr/bin/selectorctl --interpreter=python [--user=USER] [--print-summary] [--json] --disable-user-extensions=<module1[,module2...]> <FOLDER_NAME>

 

To list modules installed in application environment:

 

/usr/bin/selectorctl --interpreter=python [--user=USER] [--print-summary] [--json] --list-user-extensions <FOLDER_NAME>

 

To print applications summary for a user:

 

/usr/bin/selectorctl --interpreter=python [--user=USER] [--json] --user-summary

 

To list available interpreters:

 

/usr/bin/selectorctl --interpreter=python [--user=USER] [--json] --list

 

To restart application:

 

selectorctl --interpreter ruby --user cltest1 --domain cltest1.com --restart-webapp testapp