shcs_cli
shcs-cli is a command for managing a website shcs.
shcs-cli use shcs-api (https://github.com/fraoustin/shcs)
Installation
pip install shcs_cli
Or
git clone https://github.com/fraoustin/shcs_cli.git cd shcs_cli python setup.py install
Usage
shcs-cli has a list of verb:
- ls: list of files and directory
- upload: upload file in directory
- mkdir: create a directory
- download: download file
- rm : delete file or directory
- version : get version of ablog
- cmd : load a console
for sample
ablog-cli -H http://shcssite/ws -u guest -p guest ls
You can managing parameters of shcs-cli by ~/.shcs-cli/conf.py file or the environment variables starting with SHCS_CLI
shcs-cli use parameter command before environment variables before conf.py
list of parameters (and environment variables)
- SHCS_CLI_URL
- SHCS_CLI_USER
- SHCS_CLI_PASSWORD