CodePort is a CLI tool for sharing and downloading code snippets. It allows users to upload code files to a server and retrieve them using a unique ID.
- Upload code files to a server with syntax highlighting.
- Download code files using a unique ID.
- Password protection for uploads.
- Customizable titles and descriptions for code snippets.
To install CodePort, clone the repository and build the CLI tool:
git clone https://github.com/xspoilt-dev/codeport.git
cd codeport
chmod +x install.sh
./install.sh
To upload a code file to the server, use the following command:
codeport -f <file_path> -l <language> -t <title> -d <description> -p <password>
-f
: Path to the file to upload (required)-l
: Programming language for syntax highlighting (default: python)-t
: Title for the paste (optional)-d
: Description of the paste (optional)-p
: Password to protect the paste (optional)
Example:
codeport -f example.py -l python -t "Example Code" -d "This is an example code snippet." -p "mypassword"
To download a code file from the server, use the following command:
codeport -g <paste_id> -o <output_file>
-g
: Paste ID to download the file (required)-o
: Path to save the downloaded file (default: output.txt)
Example:
codeport -g abc123 -o downloaded_code.py
- Minhajul Islam
- Farhan Ali
This project is licensed under the MIT License.
For more information, visit https://pasteit.ftoolz.xyz.