This is a script to move all projects from one Snyk org to another.
Ensure you are running a current version of Python. You can get the latest version here.
Open Notepad or similar app and copy the following strings to use later:
Current Org ID
- Get the Org ID of the Organization where your projects currently reside.
Destination Org ID
- Switch to the destination Orgainization and repeat Step 1 to get the Org ID of the Organization where your projects will move to.
Snyk API Token
- Finally, copy your Snyk API token.
- Copy the file move_projects.py to your python environment.
- Run the file by typing
python move_projects.py
orpython3 move_projects.py
depending on the command to run Python 3 in your environment. - You will be asked to input your Current Org ID, Destination Org ID, and Snyk API Token. (You can just paste these in)
- The script will move all projects to the new org and remove them from the current org. It should look similar to this: