Forrest logo
tool overview
On this page you find all important commands for the CLI tool gcpdiag. If the command you are looking for is missing please ask our AI.

gcpdiag

Gcpdiag is a command-line tool developed by Google to diagnose and troubleshoot issues with Google Cloud Platform (GCP) services and resources. It is designed to provide detailed information and insights into various GCP components and overall system health. The tool offers a wide range of diagnostic checks and tests, making it useful for identifying and resolving potential issues proactively. Gcpdiag gathers data from different sources such as logs, API calls, and system configurations to generate comprehensive diagnostic reports. The tool can be applied to multiple aspects of GCP, including compute resources, networking, storage, and security configurations. It provides helpful recommendations and suggestions to address any identified problems or best practices that should be followed. Gcpdiag supports various platforms, including Linux, macOS, and Windows, making it accessible to a broader user base. Users can customize the scope of diagnostics by selecting specific services and regions to focus on. The tool can also be run in an interactive mode, enabling users to dynamically choose which checks to perform at runtime. Gcpdiag is a valuable resource for troubleshooting GCP infrastructure and optimizing its performance.

List of commands for gcpdiag:

  • gcpdiag:tldr:0090e gcpdiag: Hide rules that are ok.
    $ gcpdiag lint --project=${gcp_project_id} --hide-ok
    try on your machine
    explain this command
  • gcpdiag:tldr:02367 gcpdiag: Authenticate using a service account private key file.
    $ gcpdiag lint --project=${gcp_project_id} --auth-key ${path-to-private_key}
    try on your machine
    explain this command
  • gcpdiag:tldr:26f90 gcpdiag: Run `gcpdiag` on your project, returning all rules.
    $ gcpdiag lint --project=${gcp_project_id}
    try on your machine
    explain this command
  • gcpdiag:tldr:2998e gcpdiag: Display help.
    $ gcpdiag lint --help
    try on your machine
    explain this command
  • gcpdiag:tldr:5fd26 gcpdiag: Search logs and metrics from a number of days back (default: 3 days).
    $ gcpdiag lint --project=${gcp_project_id} --within-days ${number}
    try on your machine
    explain this command
tool overview