Skip to content

python script for managing files on a plesk server from the commandline

License

Notifications You must be signed in to change notification settings

nlitsme/pleskfilemanager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pleskfm

Tool for interacting with the plesk web interface from the commandline. The commands attempt to mimic the standard unix commandline tools.

requirements

  • Python 3.6
  • aiohttp 2.0

Example usage:

plesk -c test mkdir testdir
plesk -c test empty testdir/tst1.txt
plesk -c test edit testdir/tst1.txt abcakjsdkhjasdjkhasd
plesk -c test cat testdir/tst1.txt

echo abcakjsdkhjasdjkhasd | plesk -c test tee testdir/tst2.txt 
plesk -c test cat testdir/tst2.txt

plesk -c test ls testdir

commands

  • ls [-h] [--recurse] dirname
  • cat [-h] filename
  • tee [-h] filename
  • get [-h] filename destination
  • put [-h] filename destination
  • edit [-h] filename contents
  • zip [-h] [-C DIRNAME] zipname [files [files ...]]
  • unzip [-h] zipname
  • mkdir [-h] dirname
  • rmdir [-h] dirname
  • rm [-h] [files [files ...]]
  • empty [-h] filename
  • mv [-h] [-C DIRNAME] files [files ...] destination
  • cp [-h] [-C DIRNAME] files [files ...] destination
  • du [-h] [-C DIRNAME] [files [files ...]]
  • help [-h] [subcommand]

Configuration

Site configuration is read from ~/.pleskrc. See pleskrc.example for an example config file.

AUTHOR

Willem Hengeveld [email protected]

About

python script for managing files on a plesk server from the commandline

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages