Skip to content

PilotDataPlatform/cli

Folders and files

NameName
Last commit message
Last commit date
Apr 3, 2025
Apr 9, 2025
Apr 9, 2025
Apr 9, 2025
Jun 7, 2023
Jan 19, 2024
Oct 21, 2024
Jul 25, 2023
Jan 15, 2025
Apr 9, 2025
Feb 20, 2025
Apr 9, 2025

Repository files navigation

Pilot CLI

Run Tests Python

About

Command line tool that allows the user to execute data operations on the platform.

Built With

Getting Started

Prerequisites

Run with Python

  1. Install dependencies (optional: run in edit mode).

       poetry install
       # for windows use poetry install --extras "windows"
    
       poetry run python app/pilotcli.py --help
    
  2. Add environment variables if needed.

    1. Create a .env file in the root directory of the project.
    2. Sdd following two environmental varibles to the .env file.
      • api_url: the url that the api server is hosted on. default is https://api.pilot.indocresearch.com/pilot
      • keycloak_realm_url: thr url that the keycloak server is hosted on. default is https://iam.pilot.indocresearch.com/realms/pilot

Run from bundled application

  1. Navigate to the appropriate directory for your system.

     ./app/bundled_app/linux/
     ./app/bundled_app/mac/
     ./app/bundled_app/mac_arm/
    

Usage

./app/bundled_app/linux/pilotcli --help

Compatible versions

Cli Version Pilot Release Version Compatible Version
3.15.0 2.14.2 2.14.2
3.15.1 2.14.2 2.14.2
3.15.2 2.15 2.15
3.16.0 2.15 2.15
3.17.0 2.15 2.15
3.17.1 2.15 2.15
3.17.2 2.15 2.15
3.18.0 2.15 2.15

Build Instructions

  1. Each system has its own credential, so building should be done after the updated the env file.

  2. Run build commands for your system.

    Linux example for each environment:

     pyinstaller -F --distpath ./app/bundled_app/linux --specpath ./app/build/linux --workpath ./app/build/linux --paths=./.venv/lib/python3.10/site-packages ./app/pilotcli.py -n <app-name>
    

    Note: Building for ARM Mac may require a newer version of pyinstaller.

    Or Windows example:

     # remember to remove the poetry.lock file before building for windows
     rm poetry.lock
     pyinstaller -F --distpath ./app/bundled_app/windows --specpath ./app/build/windows --workpath ./app/build/windows --paths=./.venv/Lib/site-packages ./app/pilotcli.py -n <app-name>