You can upload, download, and manage files in Cloud Storage buckets by using standard SFTP commands. The following table describes the SFTP commands and optional flags that are supported by Cloud FTP.
| Command | Description |
|---|---|
cd PATH |
Change directory. |
get REMOTE_PATH [LOCAL_PATH] |
Download a file from a bucket. If you omit the To recursively download all files from a folder, include the
|
ls |
List the files in the current directory. You can refine the list of files by including one or more of the following flags:
To list the files within a different directory, include the directory
name: |
mkdir PATH |
Create a directory. |
put LOCAL_PATH [REMOTE_PATH] |
Upload a local file to a bucket. If you omit the To recursively upload all files in a folder, use the
|
progress |
Toggle the display of the progress meter. |
pwd |
Display the current remote working directory. |
rename OLD_PATH NEW_PATH |
Rename a file. Rename a directory, in buckets that have hierarchical namespace enabled. The file that you're renaming must be in the current directory, and the destination directory must already exist. |
rm PATH |
Delete a file from a bucket. |
rmdir PATH |
Delete a directory. You must delete all files from a directory before you can delete the directory. |
version |
Display the SFTP protocol version. |
bye, exit, or quit
|
Exit the SFTP session. |