Skip to main content

Pocklo CLI · 小兜

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

  • SSO-based login by exchanging an authorization code for the backend JWT token
  • 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 pocklo

For local development:

pip install -e .

Commands

Print the SSO authorization URL:

pocklo login --print-url

Interactive login:

pocklo login

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.2.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.2.0
File Size Uploaded Provenance Actions
pocklo-0.2.0.tar.gz 15.4 kB Without provenance Details for pocklo-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 31.9 kB

Release files / pocklo-0.2.0.tar.gz

Download URL pocklo-0.2.0.tar.gz
Size 15.4 kB
Tags Source
SHA-256 checksum
How to use checksums
962fb6394088179c936e251c36c952bc526c14bc90da8d935b5dc59e1d17ad4a
BLAKE2b-256 checksum
How to use checksums
6cf3f14c9a730ad655ca043805afd6772231172bd57e3cd98dff3405c6f328b0
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.2.0-py3-none-any.whl

Download URL pocklo-0.2.0-py3-none-any.whl
Size 16.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e2735060763c83657f72414946818d9d02ab722871a649851ffa5b39972eaba
BLAKE2b-256 checksum
How to use checksums
e7286940f5e6539e830d03f33cdd67b9c02fe2892ce4c77efb69fa0a09c31461
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.2.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.2.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