Download and Install the precisionFDA CLI
The precisionFDA CLI is useful for programmatic uploading and downloading of files from Windows, MacOS, and Linux clients (e.g. your laptop) to and from precisionFDA. Installation and testing for Windows and Linux OS are described below.
Under My Home Assets, click on the How to create assets button to find links to the precisionFDA CLI, and the button to generate the temporary authorization key that you'll use with the CLI.




Windows
Click the Windows download button to place the zip file and double click it in the browser footer to open it.

Click on Extract all to decompress the pfda CLI and browse to select the Desktop as the destination for the pfda.exe file. NOTE: On FDA laptops, you will need to install the pfda.exe file in C:\temp\ or you will get a permissions error when trying to run it.


Using the Windows start menu, bring up a Command Prompt window with the pfda.exe file visible in a file explorer side-by-side. Drag pfda.exe onto the Command Prompt window to expand the full path the executable and add --version and hit return.


First, copy a file ID to test downloading, and retrieve an authorization key that is required for all file transfers.


Linux
Copy the download URL and install and test uploading and downloading files. First, copy a file ID to test downloading, and retrieve an authorization key that is required for all file transfers.

