Use case
You would like to back up your Pipelines or Projects locally.
Solution
You will need to have the Codefresh CLI installed. When installed, run the following command:
codefresh get pip "pipeline_name" -o yaml > pipeline_backup_file
If you would like to export protected variables, run the following:
codefresh get pip "pipeline_name" --decrypt-variables -o yaml > pipeline_backup_file
To recreate a pipeline from a backup file, run the following command:
codefresh replace -f pipeline_backup_file