Learn how to make the most of Drop CLI
Simply use curl with the --upload-file flag:
curl --upload-file myfile.txt https://dropcli.com/uploadYou'll receive a unique URL to share with others.
Yes! You can pipe content directly:
echo "Hello World" | curl --upload-file - https://dropcli.com/uploadOr redirect output from any command:
cat logfile.txt | curl --upload-file - https://dropcli.com/uploadAd Space (728x90)
Encrypt your file before uploading using GPG or OpenSSL:
# Using GPG
gpg --encrypt --recipient you@example.com file.txt
curl --upload-file file.txt.gpg https://dropcli.com/uploadOr use OpenSSL for password-based encryption:
# Encrypt
openssl enc -aes-256-cbc -salt -in file.txt -out file.txt.enc
curl --upload-file file.txt.enc https://dropcli.com/upload
# Decrypt (on receiver's end)
curl https://dropcli.com/d/abc123 | openssl enc -aes-256-cbc -d -out file.txtCompress the folder first, then upload the archive:
# Create tar.gz archive and upload
tar -czf - myfolder/ | curl --upload-file - https://dropcli.com/uploadOr create a zip file:
zip -r myfolder.zip myfolder/
curl --upload-file myfolder.zip https://dropcli.com/uploadDownload and extract:
curl https://dropcli.com/d/abc123 | tar -xzf -Use curl's progress bar:
curl --upload-file largefile.zip https://dropcli.com/upload --progress-barThis displays a progress bar during the upload.
Absolutely! Here's a bash script example:
#!/bin/bash
FILE=$1
RESPONSE=$(curl -s --upload-file "$FILE" https://dropcli.com/upload)
echo "File uploaded: $RESPONSE"
# Copy URL to clipboard (macOS)
echo "$RESPONSE" | pbcopy
echo "URL copied to clipboard!"Save this as upload.sh, make it executable, and use: ./upload.sh myfile.txt
Loop through files in a directory:
for file in *.log; do
url=$(curl -s --upload-file "$file" https://dropcli.com/upload)
echo "$file -> $url"
doneYes, use cron for scheduled uploads:
# Upload daily backup at 2 AM
0 2 * * * tar -czf - /var/backups/ | curl --upload-file - https://dropcli.com/upload/backup-$(date +\%Y\%m\%d).tar.gzAdd this line to your crontab: crontab -e
Ad Space (728x90)
We take security seriously:
For sensitive data, we recommend using client-side encryption (see "How do I upload with encryption?" above).
Use OpenSSL to encrypt with a password:
# Upload
openssl enc -aes-256-cbc -pbkdf2 -in secret.txt -out secret.txt.enc
curl --upload-file secret.txt.enc https://dropcli.com/upload
# Download and decrypt
curl https://dropcli.com/d/abc123 | openssl enc -aes-256-cbc -pbkdf2 -d -out secret.txtThe receiver will need to know the password to decrypt the file.
Files are automatically deleted after 3 days. This ensures:
Use curl or wget:
# Using curl
curl https://dropcli.com/d/abc123 -o myfile.txt
# Using wget
wget https://dropcli.com/d/abc123 -O myfile.txtYes, pipe the output to other commands:
# View file content
curl -s https://dropcli.com/d/abc123
# Search within file
curl -s https://dropcli.com/d/abc123 | grep "error"
# Extract archive directly
curl -s https://dropcli.com/d/abc123 | tar -xzf -Add -v flag to curl for verbose output to diagnose issues.
Update your system's CA certificates:
# Ubuntu/Debian
sudo apt-get update && sudo apt-get install ca-certificates
# macOS
brew install ca-certificates
# CentOS/RHEL
sudo yum update ca-certificates300x250