sharefromcli
Version:
ShareFromCLI is a fast, developer-focused Node.js CLI tool that lets you share files and command snippets directly from your terminal β no setup, no accounts, just pure CLI magic.
121 lines (71 loc) β’ 2.68 kB
Markdown
# ShareFromCLI π
**ShareFromCLI** is a fast, developer-focused Node.js CLI tool that lets you share files and command snippets directly from your terminal β no setup, no accounts, just pure CLI magic.
Itβs designed for developers, workshops, and teams that need to share files or commands quickly and securely.
π **Website:** <https://sharefromcli.xyz/>
------------------------------------------------------------------------
## π¦ Installation
``` bash
npm install -g sharefromcli
```
------------------------------------------------------------------------
## βοΈ Usage
### 1οΈβ£ Initialize the CLI
``` bash
sharefromcli
```
When you run the CLI, it will automatically load your token if
available:
β
Token loaded successfully!
### 2οΈβ£ Choose an option
You can either: - **Create (C)** β Upload a local text file and share it
instantly. - **Read (R)** β Retrieve a shared document using its unique
ID.
------------------------------------------------------------------------
## β³ Expiry Policy
All shared file IDs automatically expire after 7 days for security and cleanup.
Once expired, the link or ID will no longer be available.
---
## β³ Progress Feedback
The CLI shows dynamic progress messages such as:
Processing: Verifying token...
Processing: Uploading your file...
Processing: Fetching document...
------------------------------------------------------------------------
## β οΈ Graceful Exit
If you interrupt the process (e.g., press `Ctrl + C`), you'll see a
clean error message like:
β Error: Process interrupted by user.
------------------------------------------------------------------------
## π§ͺ Local Development
If you're working on the CLI locally and want to test it **after
building**, run:
``` bash
npm install -g .
sharefromcli
```
To remove it later:
``` bash
npm uninstall -g sharefromcli
```
------------------------------------------------------------------------
## π§° Tech Stack
- Node.js
- Commander.js
- Chalk
- Axios
------------------------------------------------------------------------
## π‘ Key Highlights
- β‘ Share files or snippets in seconds
- π Secure and auto-expiring file IDs (7 days)
- π§ Easy interactive prompts
- π» Developer-first CLI with dark theme support
- π Ideal for workshops, meetups, and dev teams
---
## π Features
- Simple, developer-friendly interface.
- Upload or fetch text documents quickly.
- Built-in progress indicator.
- Graceful error handling.
------------------------------------------------------------------------
## π License
MIT License Β© 2025 ShareFromCLI