Stay organized with collectionsSave and categorize content based on your preferences.
Thecloudshellcommand allows you to accomplish tasks like launching
tutorials, downloading files, setting aliases, and opening existing files in the
code editor from the Cloud Shell command line.
Available positional arguments forcloudshellare as follows:
Positional Argument
Alternative name
Description
help
-h, --help
showcloudshellhelp
edit-files
edit-file, edit
Open specified file in the Cloud Shell Editor
download-files
download-file, download, dl
Initiate the download of the specified file
aliases
Generates short aliases for common subcommands
Example usage
To open your.bashrcfile for edit in the Cloud Shell Editor, from the Cloud
Shell command line, run:
cloudshell edit $HOME/.bashrc
Similarly, to download your.bashrcfile, run:
cloudshelldownload$HOME/.bashrc
To display information about thecloudshellcommand from yourCloud Shell session,
runcloudshell help.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Use the cloudshell command\n\nThe `cloudshell` command allows you to accomplish tasks like launching\ntutorials, downloading files, setting aliases, and opening existing files in the\ncode editor from the Cloud Shell command line.\n\nAvailable positional arguments for `cloudshell` are as follows:\n\nExample usage\n-------------\n\nTo open your `.bashrc` file for edit in the Cloud Shell Editor, from the Cloud\nShell command line, run: \n\n cloudshell edit $HOME/.bashrc\n\nSimilarly, to download your `.bashrc` file, run: \n\n cloudshell download $HOME/.bashrc\n\nTo display information about the `cloudshell` command from your\n[Cloud Shell session](https://console.cloud.google.com/cloudshell),\nrun `cloudshell help`."]]