Skip to main content

Pocklo CLI · 小兜

pocklo is the command-line client for the Pocklo file workspace. It supports:

  • Frienden OAuth login with PKCE, with Qitian as an alternative
  • Listing remote directories
  • Switching into a remote working directory with cd
  • Uploading a local file into a remote directory
  • Uploading a local directory recursively while recreating its folder structure remotely
  • Resumable multipart uploads with real remote-part progress

Install

python3 -m pip install --upgrade pocklo

Requires Python 3.10 or newer.

For local development:

pip install -e .

Commands

Sign in with Frienden:

pocklo login

Approve Pocklo in Frienden, then copy the callback address from the Pocklo page and paste it into the same terminal. The CLI uses Frienden's OAuth SDK and asks for your verified phone number so Pocklo can find the same account as the web app. If you already use Qitian, bind Frienden in your Pocklo account settings first to sign in to that account. For SSH sessions, run pocklo login --no-open-browser and open the displayed address in your browser.

Sign in with Qitian or print its authorization URL:

pocklo login --provider qitian
pocklo login --provider qitian --print-url

You can also paste the full callback URL directly:

pocklo login --code 'https://pocklo.jyonn.space/oauth/qtb/callback?code=...'

Show the authenticated user:

pocklo whoami

Change into a remote directory:

pocklo cd @Ab12Cd
pocklo cd Projects
pocklo cd ../Archive

Print the current remote directory:

pocklo pwd

List the current remote directory:

pocklo ls

List the remote root directory explicitly:

pocklo ls /

List a nested remote directory by relative path:

pocklo ls Photos/2024

List a remote resource directly by resource ID:

pocklo ls id:Ab12Cd

The shorter @资源ID form works too:

pocklo ls @Ab12Cd

Upload a local file into a remote directory:

pocklo upload ./report.pdf

Upload a local directory recursively. The local directory name is created or reused under the target remote directory:

pocklo upload ./albums

Only upload selected extensions:

pocklo upload ./albums /Photos --include-ext jpg --include-ext png

Exclude specific extensions:

pocklo upload ./albums /Photos --exclude-ext tmp --exclude-ext log

You can combine both flags. --exclude-ext takes precedence when both match the same file.

Create a directory under the remote root:

pocklo mkdir Projects
pocklo cd Projects
pocklo mkdir 2026

Create a directory under a specific remote folder:

pocklo mkdir 2026 /Photos
pocklo mkdir Archive @Ab12Cd

Rename a remote resource:

pocklo rename /Photos/old-name.jpg new-name.jpg

Move a remote resource into another remote directory:

pocklo mv new-name.jpg ../Archive

Delete a remote file:

pocklo rm new-name.jpg

Delete a non-empty remote directory recursively:

pocklo rm --recursive Archive

Download a remote file to the current directory:

pocklo download report.pdf

Download a remote file into a chosen local path:

pocklo download @Ab12Cd ./downloads/report.pdf

Download a remote directory recursively:

pocklo download @Ab12Cd ./downloads/Archive

Create a remote link resource:

pocklo link Search https://www.google.com

State File

The CLI stores the backend JWT token and the last fetched user payload in:

~/.config/pocklo-cli/state.json

On first use, Pocklo imports existing login state and the remote working directory from ~/.config/htx-cli or ~/.config/disk-cli when present. Existing upload resume records remain in their configured directory. DISK_* environment variables are still read as fallbacks. Use --config to point to a different state file.

Multipart upload resume records are stored under:

~/.config/pocklo-cli/upload-records/

Metadata

Release files for pocklo 0.3.0

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

Source distribution (sdist)

Source distribution for pocklo 0.3.0
File Size Uploaded Provenance Actions
pocklo-0.3.0.tar.gz 16.7 kB Without provenance Details for pocklo-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 34.7 kB

Release files / pocklo-0.3.0.tar.gz

Download URL pocklo-0.3.0.tar.gz
Size 16.7 kB
Tags Source
SHA-256 checksum
How to use checksums
186f0e712d89bfe14997b1a541e7188bcc64307cfb3b8b4b23fe93cea6eea22f
BLAKE2b-256 checksum
How to use checksums
1cb1afc28200e004ebdba3bf059a75ee3c989af09ced453f40724a8404f1e443
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / pocklo-0.3.0-py3-none-any.whl

Download URL pocklo-0.3.0-py3-none-any.whl
Size 17.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
422161b736d1a13f5c8710ae0d21f366d3cfe57b5c232efff33954476c9ad4e4
BLAKE2b-256 checksum
How to use checksums
50e0877f92be431d31c16654f23c90f77e83083d9f84aca7cc0e35113c53c90c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Security for pocklo 0.3.0

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.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files No provenance

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