ssh
gcloud compute ssh --zone "us-west1-a" "myserver" --project "myproject"
scp
gcloud compute scp --zone "us-west1-a" "myserver:/server/path/file1" "local/path/myfile" --project "myproject"
GCS Command line
GCP和s3cmd對應的命令
copy
gsutil cp gs://bucket-name/object-name local-file
Listing objects in a bucket
gsutil ls gs://bucket-name
Creating a new bucket
gsutil mb gs://new-bucket-name
Setting ACLs (Access Control Lists) for an object
gsutil acl ch -u user@example.com:READ gs://bucket-name/object-name
Syncing a local directory to a bucket (uploading only changed files)
gsutil rsync -r local-directory gs://bucket-name