UNPKG

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