Skip to main content

ShareFromCLI is a simple yet powerful Python-based CLI tool that lets developers share files and command snippets effortlessly from the terminal

Project description

🧩 ShareFromCLI

ShareFromCLI is a simple yet powerful Python-based CLI tool that lets developers share files and command snippets effortlessly from the terminal.
It’s built for developers, workshops, and teams who need a quick, secure way to share files and code — without any setup or cloud dependency.


🚀 Installation

Install ShareFromCLI globally via pip:

pip install sharefromcli

⚙️ Usage

🏗️ Create a New Share Command

To create a new command for your file:

sharefromcli

Then follow the prompts:

✅ Token loaded successfully!
Do you want to create cmd or read the file (C/R): C
Pick the file name to read the content: 1.txt

Once done, you’ll get a shareable command like:

Here is your command below to install content:
> pip install sharefromcli
> sharefromcli read <id>

You can now share this <id> with anyone — they can retrieve the same file easily.


📥 Read a Shared File

To view or download a shared file:

sharefromcli read <file_id>

Then choose your preferred option:

Do you want to see the content or download the content as .txt (see/download): see

The file content or a downloadable .txt file will be returned instantly.


⏳ Expiry Policy

All shared file IDs automatically expire after 7 days for security and cleanup.
Once expired, the link or ID will no longer work.


🧠 Example Workflow

Step 1: Create a Share Command

sharefromcli

→ Choose C (create)
→ Pick a file, e.g., 1.txt

Step 2: Share Command

pip install sharefromcli
sharefromcli read abc123

Step 3: Read File (Receiver)

sharefromcli read abc123

→ Choose to see or download content.


💡 Key Highlights

  • ⚡ Share files in seconds directly from CLI
  • 🔒 Auto-expiring file IDs (7 days)
  • 🧠 Simple commands with zero config
  • 💻 Developer-friendly and cross-platform
  • 🌐 Perfect for workshops, meetups, and dev teams

🧰 Example Output

✅ Token loaded successfully!
Do you want to create cmd or read the file (C/R): C
Pick the file name to read the content: test.txt
📦 Generating command...
✅ Done!
Here is your command below to install content:
> pip install sharefromcli
> sharefromcli read xyz789

🧪 Coming Soon

  • Custom expiry duration

🪪 License

MIT License © 2025 [Your Name or Handle]
All rights reserved.


🌐 Project Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sharefromcli-1.0.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sharefromcli-1.0.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file sharefromcli-1.0.0.tar.gz.

File metadata

  • Download URL: sharefromcli-1.0.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.24

File hashes

Hashes for sharefromcli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8eeb27f5c1866e01ddc0575e6fe914be825382a51851c9c9ffb8f637b302f008
MD5 45fb6b6b94c7b98f4e87449cfa28689f
BLAKE2b-256 7d9711e2cc2f5aef3e29953c9973a17e5fd385b67fc2836721995eb8121695ac

See more details on using hashes here.

File details

Details for the file sharefromcli-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: sharefromcli-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.24

File hashes

Hashes for sharefromcli-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8f582210f87e0f4ee6f1b201af3ca086033b5aaeeb4d5733227ee4a6e5ac760a
MD5 b1b76645fa9914e4f1ea2099bbd203c3
BLAKE2b-256 f6bfdbb6dcdd62c2b8891ed09947b59114331cad244dc77023310709a8cd89ec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page