Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
NOM
gdcloud init : initialisez le fichier de configuration gdcloud CLI par défaut.
SYNOPSIS
gdcloud init [flags]
DESCRIPTION
Initialisez le fichier de configuration gdcloud CLI par défaut. Vous êtes invité à fournir deux propriétés pour initialiser la configuration :
organization_console_url : URL de la console de votre organisation actuelle. Cette URL doit respecter la syntaxe "https://console.org-name.gdch.google.com".
project : nom de votre projet actuel.
Affichez ces propriétés à l'aide de la commande "gdcloud config list".
OPTIONS GCLOUD GÉNÉRALES
Ces options sont disponibles pour toutes les commandes : --configuration, --format, --help, --project, --quiet.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/04 (UTC)."],[[["\u003cp\u003e\u003ccode\u003egdcloud init\u003c/code\u003e is used to initialize the default configuration file for the gdcloud CLI.\u003c/p\u003e\n"],["\u003cp\u003eInitialization requires the organization console URL, following the syntax "https://console.org-name.gdch.google.com", and the project name.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egdcloud config list\u003c/code\u003e command allows users to view their configured properties.\u003c/p\u003e\n"],["\u003cp\u003eSeveral gdcloud wide flags, including \u003ccode\u003e--configuration\u003c/code\u003e, \u003ccode\u003e--format\u003c/code\u003e, \u003ccode\u003e--help\u003c/code\u003e, \u003ccode\u003e--project\u003c/code\u003e, and \u003ccode\u003e--quiet\u003c/code\u003e, are available to all commands.\u003c/p\u003e\n"]]],[],null,["# gdcloud init\n\nNAME\n----\n\ngdcloud init - Initialize the default gdcloud CLI configuration file.\n\nSYNOPSIS\n--------\n\n gdcloud init [flags]\n\nDESCRIPTION\n-----------\n\nInitialize the default gdcloud CLI configuration file. You are prompted for two properties to initialize the configuration:\n\n- organization_console_url: The URL to your current organization's console. This URL must follow the syntax \"https://console.org-name.gdch.google.com\".\n- project: The name of your current project.\n\nView these properties using the \"gdcloud config list\" command.\n\n### GDCLOUD WIDE FLAGS\n\nThese flags are available to all commands: `--configuration`, `--format`, `--help`, `--project`, `--quiet`.\n\nFor more information, see the [gdcloud CLI reference overview](/distributed-cloud/hosted/docs/latest/gdch/resources/gdcloud-reference/gdcloud) page."]]