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 choose any of these methods of transferring files to best suit your needs:
From the Cloud Shell three-dotted More menu, select either Upload file or Download file to move your files to and from Cloud Shell.
cloudshellcommand to download files:
cloudshell download test1.md test2.md
gcloud beta cloud-shell scpcommand 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 beta 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,
Alternatively, you can navigate to File>Download/Upload Files....