A Plone CTL for running Plone sites
The Plone CTL is meant for run Plone in development and in production.
We install plonectl in the global user site-packages, so that we can use it in multible projects.
$ pip install plonectl --user
$ plonectl -lTo upgrade plonectl just do:
$ pip install -U plonectl --user
Note: Make sure that the install directory is in $PATH ( e.g. export PATH=$PATH:$HOME/.local/bin/ )If would like to use plonectl with pipenv, you can do it as follow:
$ mkdir cli
$ cd cli
$ pipenv install plonectl
$ pipenv shell
$ plonectl -lTo enable auto completion plonectl provides the plonectl_autocomplete.sh script, put the following bash command into your bashrc:
If you installed plonectl in user global packages:
$ . ~/.local/bin/plonectl_autocomplete.shIf you installed plonectl in a virtualenv it's:
$ . /path/to/your/virtualenv/bin/plonectl_autocomplete.shIf you used pipenv to install plonectl, you have to find out the path to the virtualenv before:
$ pipenv --virtualenv
/home/maik/.local/share/virtualenvs/pe-WnXOnVWH
. /home/maik/.local/share/virtualenvs/pe-WnXOnVWH/bin/plonectl_autocomplete.sh$ plonectl --help
Usage: plonectl [OPTIONS] COMMAND1 [ARGS]... [COMMAND2 [ARGS]...]...
Plone Command Line Interface (CLI)
Options:
-l, --list-templates
-V, --versions
-h, --help Show this message and exit.
Commands:
instance
zeoserver
zeopack$ git clone https://github.com/plone/plonectl/
$ cd plonectl
$ virtualenv .
$ source bin/activate
$ pip install -r requirements.txt
$ python setup.py develop
$ plonectl --help- Issue Tracker: https://github.com/datakurre/plonectl/issues
- Source Code: https://github.com/datakurre/plonectl
This project is licensed under the BSD license.