Cli Upload using Typer
- Install python 3.7 or newer
- Install
pyinstaller
pip install -U pyinstaller
- Install
pipenv
pip install --user pipenv
- Install
pipenv
pip install --user pipenv
- Install dependencies
pip install bson
pip install typer
pip install halo
pip install pick
- Read more about
pyinstallerhere: https://pyinstaller.org/en/stable/
- Run to build a single file .exe
pyinstaller --onefile --paths .\venv\Lib\site-packages main.py
- Open the CMD Window and
cdto the folder contains the file .exe. For example, the file .exe in the folderE:\cli-upload.
cd E:\cli-upload
- Run this command to get the usage information
cli-upload --help
- Example run this command for login and uploading a file json and the base API endpoint is
http://evo.com/api.
cli-upload admin@email.com admin123 FILE_DATA.json --api-url=http://example.com/api