If importing a deployment fails, delete the files produced so far from that deployment's directory and create a log with the failure cause, then continue with the remaining deployments
Let the user retry the import into the same output directory, list all the deployments that were found on the Raspberry Pi and infer their state based on the output directory:
Deployment directory doesn't exist -> new deployment
Before starting the import, prompt the user how each of the deployments should be handled
If a successful import was detected, suggest to the user to skip that deployment by default (i.e. just pressing enter without having to type anything and in that case keeping the data in the deployment's output directory that was produced in the previous run) but allow the user to override the behavior and make the cli reimport that deployment (i.e. deleting the deployment's output directory and starting from scratch)
If a previous error was detected, suggest to retry that deployment by default, but make it possible to skip that deployment (i.e. leave the previous error log in the deployment's output directory)
If a new deployment was detected, suggest to import that deployment by default, but make it possible to skip that deployment (i.e. not create a directory for that deployment at all)
After the user chose how to handle each deployment, start processing them one by one and produce a summary at the end with the result for each deployment
An error message will be printed and non-zero exit code returned in case of an error.
Notes and questions: