Managing files with Cloud Shell

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

Uploading and downloading files and folders

You can upload and download files and folders easily using Cloud Shell. To do so, you can choose any of these methods of transferring files to best suit your needs:

  • From the Cloud Shell three-dotted More menu, select either Upload or Download to move your files or folders to and from Cloud Shell. Files and folders can only be uploaded to and downloaded from your home directory.

    Upload and Download options available in the More menu dropdown

  • Use the cloudshell command to download files:

    cloudshell download test1.md test2.md
    
  • Use the gcloud 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 cloud-shell scp cloudshell:~/data.txt localhost:~data.txt
    
  • Within your Cloud Shell Editor Explorer, right-click the directory or file you'd like to use, and choose your action from the menu: Copy Download Link, Download, Upload Files....

    Right-click a file or folder within the Explorer to bring up menu to access Upload/Download options

    Alternatively, you can navigate to File>Download/Upload Files....