Managing files with Cloud Shell

This page describes how to upload and download files with Cloud Shell.

Uploading and downloading files

You can upload and download files easily using Cloud Shell. To do so, you can use any of the three methods of transferring files:

  • From the Cloud Shell three-dotted More menu, select either Upload file or Download file to move your files to and from Cloud Shell.

    Cloud Editor session

  • Use the cloudshell command to download files:

    cloudshell download
  • Use the gcloud alpha cloud-shell scp command on a local terminal to transfer files between Cloud Shell and your workstation. For example, to move a file, 'data.txt', from Cloud Shell to your local machine:

    gcloud alpha cloud-shell scp cloudshell:~/data.txt localhost:~data.txt