Sign in to your Google Cloud account. If you're new to
Google Cloud,
create an account to evaluate how our products perform in
real-world scenarios. New customers also get $300 in free credits to
run, test, and deploy workloads.
In the Google Cloud console, on the project selector page,
select or create a Google Cloud project.
可选:如果您在 Google Cloud 控制台中没有可用的工作站配置,请让管理员为您创建工作站配置,或者确保您拥有项目的 Cloud Workstations Admin IAM 角色,以便您自行创建这些资源。
如需查看您的 IAM 角色,请前往 Google Cloud 控制台中的 IAM 页面:
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-11。"],[],[],null,["# Create and launch a workstation\n\nLearn how to get started creating a workstation with Cloud Workstations.\n\nA *workstation* is a preconfigured development environment that administrators\nor platform teams define in a *workstation configuration* . The workstation\nconfiguration includes the container image used by the workstation. Your\nadministrators choose whether to use one of the Cloud Workstations\n[preconfigured base images](/workstations/docs/preconfigured-base-images)\nor whether to provide a reference to a\n[customized container image](/workstations/docs/customize-container-images).\n\n*** ** * ** ***\n\nTo follow step-by-step guidance for this task directly in the\nGoogle Cloud console, click **Guide me**:\n\n[Guide me](https://console.cloud.google.com/freetrial?redirectPath=/?journey_id=workstations--set-up--intro&walkthrough_id=workstations--set-up--launch)\n\n*** ** * ** ***\n\n### Before you begin\n\nBefore you begin using Cloud Workstations, be sure that you have the\n[required permissions](/workstations/docs/access-control#enable_required_roles)\nand that you complete these required setup steps.\nYou can skip this section if you've already completed this setup.\n\nSign in to your Google Cloud account. If you're new to Google Cloud, [create an account](https://console.cloud.google.com/freetrial) to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.\n\nIn the Google Cloud console, on the project selector page,\nselect or create a Google Cloud project.\n| **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n[Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n\n\n[Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n\nEnable the Cloud Workstations API.\n\n\n[Enable the API](https://console.cloud.google.com/flows/enableapi?apiid=workstations.googleapis.com) \nIn the Google Cloud console, on the project selector page,\nselect or create a Google Cloud project.\n| **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n[Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n\n\n[Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n\nEnable the Cloud Workstations API.\n\n\n[Enable the API](https://console.cloud.google.com/flows/enableapi?apiid=workstations.googleapis.com)\n1.\n\n\n Enable the Cloud Workstations API.\n\n\n [Enable the API](https://console.cloud.google.com/flows/enableapi?apiid=workstations.googleapis.com)\n2. Optional: If you don't have workstation configurations available in the\n [Google Cloud console](https://console.cloud.google.com/workstations/),\n ask your administrator to create a workstation configuration for\n you, or make sure that you have a Cloud Workstations Admin IAM role on the\n project so that you can create these resources yourself.\n To check your IAM roles, go to the IAM\n page in the Google Cloud console:\n\n [Go to IAM](https://console.cloud.google.com/iam-admin/iam)\n\nCreate a workstation\n--------------------\n\nTo create a workstation, follow these steps:\n\n\u003cbr /\u003e\n\n1. In the Google Cloud console, navigate to the\n **Cloud Workstations** \\\u003e **Workstations**\n page.\n\n\n [Go to Workstations](https://console.cloud.google.com/workstations/list)\n\n \u003cbr /\u003e\n\n2. Click add_box**Create**.\n\n The **Create** link might be disabled if there aren't any\n workstation configurations in the project or if you don't have permissions\n to view them.\n Ask your organization's Cloud Workstations Admin to create a\n workstation configuration for you.\n\n3. Accept the default workstation **Name**.\n\n If you prefer, you can enter your own resource name for your\n workstation---for example, `test-workstation`.\n Follow the Compute Engine resource\n [naming conventions](/compute/docs/naming-resources)\n and choose a name that is unique within the workstation cluster.\n\n4. Click the arrow_drop_downexpander\n arrow in the **Configuration** field and select the\n workstation configuration to define your workstation.\n\n5. Click **Create**\n to create your workstation.\n\nLaunch a workstation\n--------------------\n\nNow that you have created a workstation, you can start it and then launch it to begin development:\n\n\u003cbr /\u003e\n\n1. Click **Workstations**.\n2. Find the workstation that you created in the list of available workstations, select the checkbox beside it, and then click **Start**. This starts your workstation, and matches it to the parent workstation configuration.\n3. If prompted to start your workstation, click **Start** to confirm. The status changes to **Starting** and the status icon refreshspins while the start operation is in progress. It might take a few minutes to start your workstation.\n4. When your workstation is ready, the status changes to **Running** and the status icon changes to a check_circle checkmark.\n5. Click **Launch** . The workstation connects to port `80` by default.\n\n\n Optional: You can also click the\n arrow_drop_downexpander\n arrow next to **Launch** and select from the list of launch options:\n - **Connect to port 80** (default)\n - **Connect to web app on port**\n - **Port forwarding**\n - **Connect using SSH**\n - **Launch with JetBrains Gateway** (if you are using a JetBrains IDE)\n6. The following example shows the welcome page for the Cloud Workstations\n [base editor](/workstations/docs/base-editor-overview).\n Your page might look different, depending on how you define your\n workstation configuration:\n\n For more information about connecting through SSH, see\n [SSH support](/workstations/docs/ssh-support).\n\n For more information about connecting to web apps running on your\n workstation, see\n [Access HTTP servers running on a workstation](/workstations/docs/access-http-servers-running-on-workstations).\n\nClean up\n--------\n\nTo delete a workstation from the Google Cloud console:\n\n1. In the Google Cloud console, go to **Cloud Workstations** \\\u003e **Workstations**.\n2. Select the checkbox beside the workstation that you want to delete.\n3. Click themore_vert**More** options menu and select **Delete** to delete the selected workstation.\n\nIf your workstation configuration uses persistent disks and the\n[reclaim policy](/workstations/docs/reference/rest/v1/projects.locations.workstationClusters.workstationConfigs#reclaimpolicy)\nis set to retain persistent disks after you delete the workstation, be sure to\nremind your Cloud Workstations Admin to manually delete the\npersistent disk for you.\n\n\nFor more about deleting workstation configurations,\nworkstation clusters, and Google Cloud projects,\nsee [Delete resources](/workstations/docs/delete-resources).\n\nWhat's next\n-----------\n\n- Use the\n [Cloud Workstations base editor](/workstations/docs/base-editor-overview).\n\n- Learn more about configuring additional options in your\n [workstation configuration](/workstations/docs/create-configuration).\n\n- Customize your\n [workstation configuration](/workstations/docs/customize-development-environment)\n through the API.\n\n- Create [customized container images](/workstations/docs/customize-container-images)\n that extend the\n [preconfigured base images](/workstations/docs/preconfigured-base-images)\n provided by Cloud Workstations."]]