UploaderCLI is a command-line tool that allows users to upload files to a server.
To run UploaderCLI, you'll need:
- Node.js (version 14 or higher)
- npm (version 6 or higher)
- UploaderAPI
- Clone the repository:
git clone https://github.com/saponciou/UploaderCLI.git
- Install dependencies:
cd UploaderCLI
npm install
- Install UploaderCLI globally:
npm install -g .
- Edit the endpoint url:
Go to ./bin/index.js:41
and change the url
...await uploadFile(argv.input, 'http://{ip}:{port}/upload');
- Use the
upldr
command to upload a file:
upldr -i /path/to/file
By default, the uploaded file will be saved on the server with the same name as the local file.
UploaderCLI is released under the MIT License. See LICENSE
for details.