Google Cloud platform cloudshell

Google Cloud platform cloudshell

  • welcome
  • help
    • gcloud help
    • cloudshell help
    • cloudshell aliases

welcome

Welcome to Cloud Shell! Type "help" to get started.
To set your Cloud Platform project in this session use “gcloud config set project [PROJECT_ID]”
qwfys200@cloudshell:~$

help

qwfys200@cloudshell:~$ help
Welcome to Google Cloud Shell, a tool for managing resources hosted on Google Cloud Platform!
The machine comes pre-installed with the Google Cloud SDK and other popular developer tools.
Your 5GB home directory will persist across sessions, but the VM is ephemeral and will be reset
approximately 20 minutes after your session ends. No system-wide change will persist beyond that.
Type "gcloud help" to get help on using Cloud SDK. For more examples, visit
https://cloud.google.com/shell/docs/quickstart and https://cloud.google.com/shell/docs/examples
Type "cloudshell help" to get help on using the "cloudshell" utility.  Common functionality is
aliased to short commands in your shell, for example, you can type "dl " at Bash prompt to
download a file. Type "cloudshell aliases" to see these commands.
Type "help" to see this message any time. Type "builtin help" to see Bash interpreter help.
qwfys200@cloudshell:~$

gcloud help

qwfys200@cloudshell:~$ gcloud help |tee gcloud-help.txt
NAME
    gcloud - manage Google Cloud Platform resources and developer workflow

SYNOPSIS
    gcloud GROUP | COMMAND [--account=ACCOUNT] [--configuration=CONFIGURATION]
        [--flags-file=YAML_FILE] [--flatten=[KEY,...]] [--format=FORMAT]
        [--help] [--project=PROJECT_ID] [--quiet, -q]
        [--verbosity=VERBOSITY; default="warning"] [--version, -v] [-h]
        [--log-http] [--trace-token=TRACE_TOKEN] [--no-user-output-enabled]

DESCRIPTION
    The gcloud CLI manages authentication, local configuration, developer
    workflow, and interactions with the Google Cloud Platform APIs.

GLOBAL FLAGS
     --account=ACCOUNT
        Google Cloud Platform user account to use for invocation. Overrides the
        default core/account property value for this command invocation.

     --configuration=CONFIGURATION
        The configuration to use for this command invocation. For more
        information on how to use configurations, run: gcloud topic
        configurations. You can also use the [CLOUDSDK_ACTIVE_CONFIG_NAME]
        environment variable to set the equivalent of this flag for a terminal
        session.

     --flags-file=YAML_FILE
        A YAML or JSON file that specifies a --flag:value dictionary. Useful
        for specifying complex flag values with special characters that work
        with any command interpreter. Additionally, each --flags-file arg is
        replaced by its constituent flags. See $ gcloud topic flags-file for
        more information.

     --flatten=[KEY,...]
        Flatten name[] output resource slices in KEY into separate records for
        each item in each slice. Multiple keys and slices may be specified.
        This also flattens keys for --format and --filter. For example,
        --flatten=abc.def flattens abc.def[].ghi references to abc.def.ghi. A
        resource record containing abc.def[] with N elements will expand to N
        records in the flattened output. This flag interacts with other flags
        that are applied in this order: --flatten, --sort-by, --filter,
        --limit.

     --format=FORMAT
        Set the format for printing command output resources. The default is a
        command-specific human-friendly output format. The supported formats
        are: config, csv, default, diff, disable, flattened, get, json, list,
        multi, none, object, table, text, value, yaml. For more details run $
        gcloud topic formats.

     --help
        Display detailed help.

     --project=PROJECT_ID
        The Google Cloud Platform project name to use for this invocation. If
        omitted, then the current project is assumed; the current project can
        be listed using gcloud config list --format='text(core.project)' and
        can be set using gcloud config set project PROJECTID. Overrides the
        default core/project property value for this command invocation.
  
     --quiet, -q
        Disable all interactive prompts when running gcloud commands. If input
        is required, defaults will be used, or an error will be raised.
        Overrides the default core/disable_prompts property value for this
        command invocation. Must be used at the beginning of commands. This is
        equivalent to setting the environment variable
        CLOUDSDK_CORE_DISABLE_PROMPTS to 1.

     --verbosity=VERBOSITY; default="warning"
        Override the default verbosity for this command with any of the
        supported standard verbosity levels: debug, info, warning, error,
        critical, none. Overrides the default core/verbosity property value for
        this command invocation.

     --version, -v
        Print version information and exit. This flag is only available at the
        global level.

     -h
        Print a summary help and exit.

OTHER FLAGS
     --log-http
        Log all HTTP server requests and responses to stderr. Overrides the
        default core/log_http property value for this command invocation.

     --trace-token=TRACE_TOKEN
        Token used to route traces of service requests for investigation of
        issues. Overrides the default core/trace_token property value for this
        command invocation.

     --user-output-enabled
        Print user intended output to the console. Overrides the default
        core/user_output_enabled property value for this command invocation.
        Use --no-user-output-enabled to disable.

GROUPS
    GROUP is one of the following:

     alpha
        (ALPHA) Alpha versions of gcloud commands.

     app
        Manage your App Engine deployments.

     auth
        Manage oauth2 credentials for the Google Cloud SDK.

     beta
        (BETA) Beta versions of gcloud commands.

     bigtable
        Manage your Cloud Bigtable storage.

     builds
        Create and manage builds for Google Cloud Build.

     components
        List, install, update, or remove Google Cloud SDK components.

     composer
        Create and manage Cloud Composer Environments.

     compute
        Create and manipulate Google Compute Engine resources.

     config
        View and edit Cloud SDK properties.

     container
        Deploy and manage clusters of machines for running containers.

     dataflow
        Manage Google Cloud Dataflow jobs.

     dataproc
        Create and manage Google Cloud Dataproc clusters and jobs.

     datastore
        Manage your Cloud Datastore indexes.

     debug
        Commands for interacting with the Cloud Debugger.

     deployment-manager
        Manage deployments of cloud resources.

     dns
        Manage your Cloud DNS managed-zones and record-sets.

     domains
        Manage domains for your Google Cloud projects.

     endpoints
        Create, enable and manage API services.

     firebase
        Work with Google Firebase.

     functions
        Manage Google Cloud Functions.

     iam
        Manage IAM service accounts and keys.

     iot
        Manage Cloud IoT resources.

     kms
        Manage cryptographic keys in the cloud.

     logging
        Manage Stackdriver Logging.

     ml
        Use Google Cloud machine learning capabilities.

     ml-engine
        Manage Cloud ML Engine jobs and models.

     organizations
        Create and manage Google Cloud Platform Organizations.

     projects
        Create and manage project access policies.

     pubsub
        Manage Cloud Pub/Sub topics and subscriptions.

     redis
        Manage Cloud Memorystore Redis resources.

     services
        List, enable and disable APIs and services.

     source
        Cloud git repository commands.

     spanner
        Command groups for Cloud Spanner.

     sql
        Create and manage Google Cloud SQL databases.

     topic
        gcloud supplementary help.

COMMANDS
    COMMAND is one of the following:

     docker
        (DEPRECATED) Enable Docker CLI access to Google Container Registry.

     feedback
        Provide feedback to the Google Cloud SDK team.

     help
        Search gcloud help text.

     info
        Display information about the current gcloud environment.

     init
        Initialize or reinitialize gcloud.

     version
        Print version information for Cloud SDK components.
qwfys200@cloudshell:~$

cloudshell help

qwfys200@cloudshell:~$ cloudshell help
usage: cloudshell [-h]
                  {help,edit-files,edit-file,edit,download-files,download-file,download,dl,launch-tutorial,env,aliases}
                  ...

positional arguments:
  {help,edit-files,edit-file,edit,download-files,download-file,download,dl,launch-tutorial,env,aliases}
                        Commands
    help                shows this message.
    edit-files (edit-file, edit)
                        opens specified file in the Google Cloud Shell editor.
    download-files (download-file, download, dl)
                        initiates the download of the specified file.
    launch-tutorial     launches the specified tutorial.
    aliases             generates a sequence of shell "alias" commands to
                        create short aliases for common subcommands. Example
                        use: eval `cloudshell aliases`

optional arguments:
  -h, --help            show this help message and exit
qwfys200@cloudshell:~$

cloudshell aliases

qwfys200@cloudshell:~$ cloudshell aliases
alias edit="cloudshell edit-files";
alias dl="cloudshell download-files";
alias teachme="cloudshell launch-tutorial";
alias dt="cloudshell launch-tutorial -d";
qwfys200@cloudshell:~$

你可能感兴趣的:(Cloud)