Targets
A Target refers to the specific destination or environment where your development setups, facilitated by various Providers, are deployed and managed. Providers define the method and technology used to create your environments, while Targets specify the precise location or platform where these environments will reside.
A Target can be a local machine, a remote server, or a cloud instance, and it can vary based on the chosen Provider. Targets offer the flexibility to deploy and manage environments across different platforms and accounts, all within the unified interface provided by Daytona.
Once you set your Target, it becomes available for selection whenever you create a new development environment in Daytona. You can manage multiple Targets or delete those you no longer need.
Set a Target
Daytona allows you to set a Target to use when managing Workspaces.
Prerequisite
-
At least one Provider installed.
Providers are essential for managing and deploying your Workspaces, so make sure you have configured at least one.
- Run the following command to set a Target:
- Select the appropriate Provider for the environment you want to deploy to.
- Select
New Target
. - Enter a name for your Target.
- Enter the appropriate configuration options when prompted. The configuration options vary based on the selected Provider. The following example shows setting a remote Docker Target.
- Click
Enter
to confirm setting the Target.
List Targets
Daytona allows you to keep track of your Targets by listing all previously created Targets with their details.
- Run the following command to list currently set Targets:
Upon running this command, Daytona will display a list of your Targets with their details. You will be able to see the Target name, the Provider it is connected to, and its configured options.
Delete a Target
Daytona allows you to delete Targets, helping you manage and remove those that are no longer needed. Once a Target is deleted, you will not be able to manage or deploy Workspaces on that Target.
- Run the following command:
Upon running this command, Daytona will display a list of your Targets with their details. You will be able to see the Target name, the unique identifier of the Workspace, and the repository it is connected to.
- Press
Enter
on the selected Target to delete it.
- Confirm the action.
Docker (Local)
Daytona allows you to set a local Docker Target to use for deploying and managing Workspaces. The local Docker Target enables you to deploy Workspaces on your local machine using Docker.
- Run the following command to set a Target:
- Select
docker-provider
to use the Docker Provider.
- Select
local
to set a local Docker Target.
- Enter a name for your Target.
- Enter the appropriate configuration options when prompted.
- Click
Enter
to confirm setting the Target.
Docker (Remote)
Daytona allows you to set a remote Docker Target to use for deploying and managing Workspaces. The remote Docker Target enables you to deploy Workspaces on a remote machine using Docker.
- Run the following command to set a Target:
- Select
docker-provider
to use the Docker Provider.
- Select
New Target
to set a remote Docker target.
- Enter a name for your Target.
- Enter the appropriate configuration options when prompted.
- Click
Enter
to confirm setting the Target.
AWS
Daytona allows you to set an AWS Target to use for deploying and managing Workspaces.
- Run the following command to set a Target:
- Select
aws-provider
to use the AWS Provider.
- Select
New Target
. - Enter a name for your Target.
- Enter the appropriate configuration options when prompted.
- Click
Enter
to confirm setting the Target.
DigitalOcean
Daytona allows you to set a DigitalOcean Target to use for deploying and managing Workspaces.
- Run the following command to set a Target:
- Select
digitalocean-provider
to use the DigitalOcean Provider.
- Select
New Target
. - Enter a name for your Target.
- Enter the appropriate configuration options when prompted.
- Click
Enter
to confirm setting the Target.
Fly
Daytona allows you to set a DigitalOcean Target to use for deploying and managing Workspaces.
- Run the following command to set a Target:
- Select
fly-provider
to use the Fly Provider.
- Select
New Target
. - Enter a name for your Target.
- Enter the appropriate configuration options when prompted.
- Click
Enter
to confirm setting the Target.