このページの一部またはすべての情報は、S3NS の Trusted Cloud に適用されない場合があります。
ユーザー補助機能の有効化
スクリーン リーダーの利便性を向上させるために、gcloud コマンドライン ツールには accessibility/screen_reader
プロパティが付属しています。このプロパティを true に設定すると、次の動作が有効になります。
- unicode スピナーの代わりのステータス トラッカー: gcloud がタスクを実行しているときに 'working' フレーズが stderr に表示されます。
- パーセント進行状況バー: 進行状況が stderr にパーセントで表示されます。
- フラット化テーブル: ボックス テーブルは、多くのリストコマンドのデフォルトの出力です。クエリされたリソースが Unicode で描画されたテーブルに表示されるのではなく、フラット化されたアイテムのリストとしてレンダリングされます。独自のフォーマットを定義するために
--format
フラグを使用することも検討してください。
ユーザー補助機能を有効にするには、次のコマンドを実行します。
gcloud config set accessibility/screen_reader true
参考情報
別のドキュメント環境
- キーワードまたはコマンドについて gcloud CLI リファレンス ドキュメントを検索するには、
gcloud help
を使用します。これにより、指定した引数に一致するヘルプテキストを含むすべてのコマンドが検索されます。
gcloud CLI 出力の調整
- コマンド出力の詳細レベルを調整するには、gcloud CLI のフラグ
--verbosity
を debug、info、warning、error、critical、none のいずれかに設定します。
- list コマンドの場合、出力をさらに絞り込むために
--limit
フラグでリストするリソースの最大数を設定します。また、--page-size
フラグを使用して、サービスリストがページに出力された場合の 1 ページあたりのリソース数を定義することもできます。並べ替えの対象フィールドで --sort-by
フラグを使用するとフィールドが並べ替えられます。
- 対話型プロンプトを無効にするには、
--quiet
フラグを使用します。
- よりわかりやすい出力を構造化して生成するには、format、filter、projection フラグを使用して出力を微調整します。
- 出力形式だけを定義する場合は、
--format
フラグを使用して、出力(対話型表示用)を表形式やフラット形式で、または出力(json、csv、yaml、value)を機械可読形式で生成します。
- リソースデータの値を選択するキーのリストを書式設定するには、projections を使用します。
- 定義する基準に従って出力をさらに絞り込むには、
--filter
フラグを使用します。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-25 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-08-25 UTC。"],[],[],null,["# Enabling accessibility features\n\nIn order to provide a more streamlined screen reader experience, the gcloud\ncommand-line tool comes with an `accessibility/screen_reader` property.\nWhen this property is set to true, the following behaviour is enabled:\n\n- **Status trackers instead of unicode spinners:** The phrase 'working' is displayed on stderr while gcloud is performing tasks.\n- **Percentage progress bars:** Progress is displayed as a percentage, outputted to stderr.\n- **Flattened tables** : Boxed tables are the default output of many list commands. Instead of the queried resources being displayed in tables drawn in Unicode, results are rendered as a flattened list of items. Also, consider using the `--format` flag to define your own format.\n\nTo enable these accessibility features, run: \n\n gcloud config set accessibility/screen_reader true\n\nAdditional resources\n--------------------\n\n### Alternate documentation experiences\n\n- To search the gcloud CLI reference docs for a keyword or command, use [`gcloud help`](/sdk/gcloud/reference/help). This runs a search for all commands with help text matching the given argument or arguments.\n\n### Refining gcloud CLI output\n\n- To adjust the verbosity level of a command, you can set the gcloud CLI flag `--verbosity` with either debug, info, warning, error, critical, or none.\n- For list commands, you can further refine your output by using the `--limit` flag to set a maximum number of resources to list. You can also use the `--page-size` flag to define the number of resources per page if the service lists output in pages. To sort, use the `--sort-by` flag with the relevant field to sort.\n- To disable interactive prompting, use the [`--quiet`](/sdk/gcloud/reference#--quiet) flag.\n- To structure and produce more meaningful output, you can use the format, filter and projection flags to fine-tune your output.\n - If you'd like to define just the format of your output, use the [`--format`](/sdk/gcloud/reference/topic/formats) flag to produce a tabulated or flattened version of your output (for interactive display) or a machine-readable version of the output (json, csv, yaml, value).\n - To format a list of keys that select resource data values, use [projections](/sdk/gcloud/reference/topic/projections).\n - To further refine your output to a criteria you'd like to define, use the [`--filter`](/sdk/gcloud/reference/topic/filters) flag.\n\nFiling feedback\n---------------\n\nTo file a bug, provide feedback, or send suggestions, use `gcloud feedback` to\nhelp improve the gcloud CLI experience. This command will\nopen the public issue tracker in a browser window.\n\nYou can also directly log issues using\n[issue tracker](https://issuetracker.google.com/issues/new?component=187143).\nBe sure to toggle the 'Type' field to reflect the nature of the issue you're\nfiling (Bug, Feature Request, etc.) to help make responses more efficient."]]