How to Move Resources between Projects

Projects let you organize your DigitalOcean resources (like Droplets, Spaces, and load balancers) into groups that fit the way you work. You can create projects that align with the applications, environments, and clients that you host on DigitalOcean.


Moving resources from one project lets you reorganize as your infrastructure changes and grows.

You can move resources in two ways:

  • Individually from any one project into any other project.
  • In bulk from any number of projects into any single project.

Move Resources Using the CLI

You can move resources between project individually or in bulk by providing a list of Uniform Resource Names (URN) in the resource field of the following doctl command. You can retrieve a list of URNs using the doctl projects resources list command.

How to assign resources to a project using the DigitalOcean CLI

To assign resources to a project via the command-line, follow these steps:

  1. Install doctl, the DigitalOcean command-line tool.

  2. Create a personal access token, and save it for use with doctl.

  3. Use the token to grant doctl access to your DigitalOcean account.

                  doctl auth init
                
  4. Finally, assign resources to a project with doctl projects resources assign. The basic usage looks like this, but you'll want to read the usage docs for more details:

                  doctl projects resources assign <project-id> --resource=<urn> [--resource=<urn> ...] [flags]
                

Move Resources Individually Using the Control Panel

From a project’s default page, click the Resources tab. Locate the resource you want to move and open its options menu, represented by three dots, then select Move to…:

More menu opened with Move to highlighted

In the Select project window that opens, select the project where you want to move that resource, then click Move to [Project Name]:

More menu opened with Select project opened

A message will appear confirming that the resource has been moved to the new project, and you should no longer see it among the original project’s resources. You’ll remain on the original project’s resource tab, where you can move other resources.

Move Resources in Bulk Using the Control Panel

To move multiple resources at one time, navigate to the destination project where the resources need to go. From there, click the Move Resources button.

Move Resources button

When you click into the text area, a list of all movable resources from other projects will open. You can keep typing to filter the list.

Click the names of the resources you want to move, then click the Move to [Project Name] button.

Move Resources window

The selected resources will be moved into the current project.