Skip to main content

mycloudhome - a CLI tool for wd mycloud home.

Project description

# WD My Cloud Home CLI

mycloudhome is a cli tool to manage file on the West Digital storage device: My Cloud Home. You can check the files on your device in the cli way. Also you can upload or download the file in your command line anywhere without using the WD Client or Web Brower.

Learn more about MY CLOUD HOME from: <https://www.mycloud.com/#/>

__WD has changed the policy of login. The username and password is not possible now. So I disable this auto-fetch token interface. Please get your token by yourself. And use mycloudhome login –username XXX –token XXX instead !!!__

> hints: F11 on Chrome and monitor the xhr like: POST https://auth0.accounts.westerndigital.com/oauth/token HTTP/2.0. The access_token in the respond body is what we want.

## Install

`bash pip3 install mycloudhome `

## Usage Examples

Command-line scares you off? No, mycloudhome is really easy to use!!

  1. fisrt, we need do a login action. And it will fetch your token and config from mycloud.com.

`bash mycloudhome login --username xxx --token xxx `

  1. get your devices info by:

`bash mycloudhome devices `

  1. list the files and dirs under the path:

`bash mycloudhome ls --wduri 'wd://Buckets/install/' `

>The path on device aways start with ‘wd://’, and the root of your device is ‘wd://’

  1. move one file from one location to another:

`bash mycloudhome mv --src wd://temp/readme.md --dst wd://temp/ttt `

  1. delete file:

`bash mycloudhome rm --wduri wd://temp/readme_1.md `

  1. create a new WD dir:

`bash mycloudhome mkdir --wduri wd://temp/cache `

  1. upload the file from local file system to My Cloud Home:

`bash mycloudhome upload --src 20200518.xlsx --wduri wd://excels `

  1. download file from My Cloud Home to local file system:

`bash mycloudhome download --wduri 'wd://Buckets/install/v2ray-linux-arm64.zip' --localpath . `

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mycloudhome-2022.2.22.tar.gz (7.9 kB view hashes)

Uploaded Source

Built Distribution

mycloudhome-2022.2.22-py3-none-any.whl (10.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page