Spaces:
Running
Running
File size: 5,088 Bytes
5c3d81a d16fbd2 5c3d81a bb6b03a 5c3d81a bb6b03a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 | ---
title: Docs
emoji: π’
colorFrom: indigo
colorTo: green
sdk: static
pinned: false
---
# βοΈ pockit CLI
<p align="center">
<img src="scr.png" width="650" alt="pockit CLI Screenshot" />
</p>
## π Welcome to pockit
Welcome to **pockit CLI**, a modern command-line tool built specifically for developers who want fast, direct access to their cloud files β without using a website.
While the web platform is available at **[https://pockit-cloud.github.io/home](https://pockit-cloud.github.io/home)**, pockit CLI is designed for users who prefer working entirely in the terminal. It provides the same core file management capabilities in a faster, scriptable, and development-friendly environment.
pockit lets you manage your storage directly from the command line. Upload, download, organize, delete, and synchronize files using simple commands, all inside a clean and interactive CLI experience.
This tool is designed for developers, power users, and anyone who wants efficient cloud access without opening a browser.
---
## π― Purpose of pockit
pockit exists to:
* Provide direct cloud file access from the terminal
* Offer an alternative to using the web interface
* Speed up developer workflows
* Enable automation and scripting
* Deliver a clean, interactive CLI experience
* Support real-time folder synchronization
It is built to integrate naturally into development environments, CI workflows, and everyday terminal usage.
---
## β¨ Key Features
pockit combines powerful functionality with a polished interface.
### π Secure Session Handling
* Interactive login system
* Local session caching for convenience
* Automatic reuse of saved sessions
* Secure storage of credentials
* Manual logout support
### π Full File Management
* List all files
* Upload local files
* Download files interactively
* Delete files safely with confirmation
* Change account password
### β¨ Magic Sync Mode
* Continuous two-way synchronization
* Detects new, modified, and removed files
* Keeps a local folder and cloud storage identical
* Runs until manually stopped
* Cross-platform support
### π¨ Modern Terminal Experience
* Styled output using Rich
* Interactive prompts
* Spinners and progress bars
* Clean tables and panels
* Color-coded status messages
---
## π₯οΈ Commands
### `pockit login`
Start a secure session.
### `pockit logout`
Clear saved session data.
### `pockit ls`
List all files in your cloud storage.
### `pockit upload`
Upload a local file to the cloud.
* Interactive file selection
* Optional rename
* Progress feedback
### `pockit download`
Download a selected cloud file.
* Interactive selection
* Choose save location
* Validated before saving
### `pockit delete`
Remove a file from cloud storage.
* Requires confirmation
* Prevents accidental deletion
### `pockit chpasswd`
Change your account password securely.
### `pockit magicsync`
Enable continuous synchronization between a local folder and your cloud storage.
* Automatic updates both ways
* Detects changes using file hashing
* Stop anytime with `Ctrl + C`
---
## π Magic Sync Folder
Magic Sync uses a dedicated folder depending on your operating system:
* **macOS & Windows:** Desktop β `Pockit-magicSync`
* **Linux:** Uses system desktop directory if available, otherwise creates a folder in your home directory.
This ensures a consistent sync location across platforms.
---
## π How Magic Sync Works
Magic Sync continuously monitors both local and cloud files.
It automatically:
* Detects new files
* Detects modified files
* Detects deleted files
* Applies updates in both directions
* Keeps environments perfectly aligned
This enables seamless development workflows and instant synchronization.
---
## ποΈ Design Philosophy
pockit is built with:
* Developer-first thinking
* Clean command structure
* Cross-platform compatibility
* Automation-friendly workflows
* Interactive usability
* Lightweight performance
The goal is to make cloud file management fast, intuitive, and terminal-native.
---
## π Installation
pockit is available on **PyPI** and can be installed directly with:
```bash
pip install pockit
```
After installation, run it using:
```bash
pockit <command>
```
Example workflow:
```bash
pockit login
pockit upload
pockit ls
pockit download
pockit magicsync
```
---
## π Security Overview
* Credentials are stored locally with restricted permissions
* Authentication required for all file operations
* Deletions require confirmation
* Downloaded files are validated
* Session management is user-controlled
---
## π Stopping Magic Sync
While Magic Sync is running, press:
```
Ctrl + C
```
to stop it safely.
---
## βοΈ Conclusion
pockit CLI is a developer-focused cloud storage tool designed to provide fast, direct file access from the terminal β without relying on a website.
It streamlines workflows, supports real-time synchronization, and delivers a modern CLI experience built for productivity.
---
**Built for developers. Built for the terminal. βοΈ**
|