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:
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.
To assign resources to a project via the command-line, follow these steps:
doctl, the DigitalOcean command-line tool.
personal access token, and save it for use with
Use the token to grant
doctl access to your
doctl auth init
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]
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…:
In the Select project window that opens, select the project where you want to move that resource, then click Move to [Project Name]:
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.
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.
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.
The selected resources will be moved into the current project.