Skip to main content

# 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 . `

—

Metadata

Release files for mycloudhome 2022.2.22

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mycloudhome 2022.2.22
File Size Uploaded Provenance Actions
mycloudhome-2022.2.22.tar.gz 7.9 kB Without provenance Details for mycloudhome-2022.2.22.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mycloudhome 2022.2.22
File Interpreter ABI Platform Actions
mycloudhome-2022.2.22-py3-none-any.whl Python 3 none any Details for mycloudhome-2022.2.22-py3-none-any.whl

Total release size: 18.6 kB

Release files / mycloudhome-2022.2.22.tar.gz

Download URL mycloudhome-2022.2.22.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f83a6f9dd250e1c3a1b10fedc042c31d10c933750f3058abe5dcc306dc4fa4f9
BLAKE2b-256 checksum
How to use checksums
c39cdf97ef8cc69c82ccfba4618168e64f6e6f6974cc54655e3db4f875d900cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.26.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Release files / mycloudhome-2022.2.22-py3-none-any.whl

Download URL mycloudhome-2022.2.22-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7bd407b4e731c0d67abf5d0954950a6e97da6606ae2f43b6d1248b8b73eceda4
BLAKE2b-256 checksum
How to use checksums
754e0f926af7159bc1a975a7a718c327a992667eaff6f0ef470507b5abff9806
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.26.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Security for mycloudhome 2022.2.22

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page