fileserver-cli
v1.0.3
Published
CLI for File Server
Readme
FileServer CLI
A powerful command-line tool to interact with the FileServer backend. Upload, download, manage, and share files directly from your terminal.
Installation
npm install -g fileserver-cliInitial Setup
fileserver initThis will configure your CLI with the backend server.
Authentication
Login
fileserver login <username> <password>Logout
fileserver logoutFile Operations
📤 Upload File
fileserver upload <file-path>Download File
fileserver download <fileId>List Files
fileserver listDelete File
fileserver delete <fileId>Share Files
Generate a shareable link:
fileserver share <fileId>Preview File
fileserver preview <fileId>User Info
fileserver whoamiConfiguration
View config:
fileserver configFeatures
- 🔐 Secure authentication
- 📤 Upload & download files
- 🔗 Share files via links
- ⚡ Fast CLI-based operations
- 🧩 Modular command system
- 🌐 Works with cloud backend
Tech Stack
- Node.js
- Commander.js
- Axios
- Chalk
- Ora
Backend
This CLI connects to a cloud-hosted backend deployed on Microsoft Azure.
Example Workflow
fileserver init
fileserver login ankush 123456
fileserver upload test.txt
fileserver list
fileserver share 123Troubleshooting
Command not found
Reinstall globally:
npm install -g fileserver-cliAPI errors
Ensure backend is running and configured correctly.
📄 License
MIT License
👨💻 Author
Ankush Ujawane
⭐ Support
If you like this project, give it a star on GitHub!
