Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nextcloudSimpleCLI

setup

pip install -r requirements.txt

cp config.json.example config.json

nano config.json

running

python3 main.py very_big_file.zip /destination_folder

or

python3 main.py --server https://example.com --user John --password Doe very_big_file.zip /destination_folder

or

python3 main.py -lH /example_folder  # list contents of folders

Usage:

usage: main.py [-h] [-l] [-H] [-c CONFIG] [-s SERVER] [-u USER] [-p PASSWORD] [source_files ...] destination

positional arguments:
  source_files          source files / folders
  destination           destination folder

options:
  -h, --help            show this help message and exit
  -l                    list Nextcloud directory contents
  -H, --human-readable  print sizes like 1K 234M 2G etc.
  -c CONFIG, --config CONFIG
                        config file containing login credentials
  -s SERVER, --server SERVER
                        url of nextcloud server
  -u USER, --user USER  login username
  -p PASSWORD, --password PASSWORD
                        login password

About

upload files and folders to a nextcloud server or list contents

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages