Skip to content

Download files from and list content of NextCloud (password protected) share directly from the command line without needing a webbrowser.

License

Notifications You must be signed in to change notification settings

aertslab/nextcloud_share_url_downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Nextcloud share URL downloader.

Purpose

Download files from and list content of NextCloud (password protected) share directly from the command line without needing a webbrowser.

Installation

# Clone this repository.
git clone https://github.com/aertslab/nextcloud_share_url_downloader

cd nextcloud_share_url_downloader

Usage

# Ask for password:
./nextcloud_share_url_downloader.sh <nextcloud_share_url>

# Provide the password as an argument:
./nextcloud_share_url_downloader.sh <nextcloud_share_url> <nextcloud_share_password>

Examples

Download password protected file(s)

# Download/list password protected file(s) by providing the password as argument:
./nextcloud_share_url_downloader.sh \
    "https://nextcloud.example.com/index.php/s/c56Ci4EpLnjj9xT" \
    "my_nextcloud_share_password"

# Download/list password protected file(s) by providing the password when being prompted for it:
./nextcloud_share_url_downloader.sh \
    "https://nextcloud.example.com/index.php/s/c56Ci4EpLnjj9xT"

Download/list unprotected file(s)

# Download/list unprotected file(s) by providing an empty password as argument:
./nextcloud_share_url_downloader.sh \
    "https://nextcloud.example.com/index.php/s/c56Ci4EpLnjj9xT" \
    ""

# Download/list unprotected file(s) by providing an empty password when being prompted for it:
./nextcloud_share_url_downloader.sh \
    "https://nextcloud.example.com/index.php/s/c56Ci4EpLnjj9xT"

Download/list password protected file(s) from a subdirectory

# Download/list password protected file(s) from a subdirectory:
./nextcloud_share_url_downloader.sh \
    "https://nextcloud.example.com/index.php/s/c56Ci4EpLnjj9xT?path=subdir" \
    "my_nextcloud_share_password"

About

Download files from and list content of NextCloud (password protected) share directly from the command line without needing a webbrowser.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages