Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 930 Bytes

readme.md

File metadata and controls

52 lines (33 loc) · 930 Bytes

UploaderCLI

UploaderCLI is a command-line tool that allows users to upload files to a server.

Prerequisites

To run UploaderCLI, you'll need:

  • Node.js (version 14 or higher)
  • npm (version 6 or higher)
  • UploaderAPI

Installation

  1. Clone the repository:
git clone https://github.com/saponciou/UploaderCLI.git
  1. Install dependencies:
cd UploaderCLI
npm install
  1. Install UploaderCLI globally:
npm install -g .
  1. Edit the endpoint url:

Go to ./bin/index.js:41 and change the url

...await uploadFile(argv.input, 'http://{ip}:{port}/upload');
  1. 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.

License

UploaderCLI is released under the MIT License. See LICENSE for details.