Skip to content
forked from plone/plonecli

A Plone command line client for mrbob

License

Notifications You must be signed in to change notification settings

datakurre/plonectl

 
 

Repository files navigation

Plone CTL

A Plone CTL for running Plone sites

The Plone CTL is meant for run Plone in development and in production.

Installation

We install plonectl in the global user site-packages, so that we can use it in multible projects.

$ pip install plonectl --user
$ plonectl -l

To 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 -l

Bash Auto Completion

To 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.sh

If you installed plonectl in a virtualenv it's:

$ . /path/to/your/virtualenv/bin/plonectl_autocomplete.sh

If 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

Usage

Available Commands

$ 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

Developer Guide

Setup Developer Environment

$ git clone https://github.com/plone/plonectl/
$ cd plonectl
$ virtualenv .
$ source bin/activate
$ pip install -r requirements.txt
$ python setup.py develop
$ plonectl --help

Contribute

License

This project is licensed under the BSD license.

About

A Plone command line client for mrbob

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 94.8%
  • Makefile 4.7%
  • Shell 0.5%