Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Nome
kf create-space: crea uno spazio con il nome specificato.
Synopsis
kf create-space NAME [flags]
Esempi
# Create a Space with custom domains.
kf create-space my-space --domain my-space.my-company.com
# Create a Space that uses unique storage and service accounts.
kf create-space my-space -container-registry gcr.io/my-project --build-service-account myserviceaccount
# Set running and staging environment variables for Apps and Builds.
kf create-space my-space --run-env=ENVIRONMENT=nonprod --stage-env=ENVIRONMENT=nonprod,JDK_VERSION=8
Flag
--build-service-account=string
Account di servizio utilizzato da Build.
--container-registry=string
Le app e il codice sorgente creati in Container Registry verranno archiviati.
--domain=stringArray
Imposta i domini validi per lo spazio. Il primo dominio fornito è quello predefinito.
-h, --help
Guida per create-space
--run-env=stringToString
Imposta le variabili di ambiente di esecuzione per tutte le app nello spazio.
--stage-env=stringToString
Imposta le variabili di ambiente di staging per tutte le build nello spazio.
Flag ereditati
Questi flag vengono ereditati dai comandi principali.
--as=string
Nome utente da rubare per l'operazione.
--as-group=strings
Gruppo da simulare per l'operazione. Includi questo flag più volte per specificare più gruppi.
--config=string
Percorso del file di configurazione Kf da utilizzare per le richieste dell'interfaccia a riga di comando.
--kubeconfig=string
Percorso del file kubeconfig da utilizzare per le richieste della CLI.
--log-http
Registra le richieste HTTP nell'errore standard.
--space=string
Spazio in cui eseguire il comando. Questo flag sostituisce lo spazio attualmente scelto come target.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 UTC."],[],[],null,["# kf create-space\n\n### Name\n\n`kf create-space` - Create a Space with the given name.\n\n### Synopsis\n\n```\nkf create-space NAME [flags]\n```\n\n### Examples\n\n```\n# Create a Space with custom domains.\nkf create-space my-space --domain my-space.my-company.com\n\n# Create a Space that uses unique storage and service accounts.\nkf create-space my-space -container-registry gcr.io/my-project --build-service-account myserviceaccount\n\n# Set running and staging environment variables for Apps and Builds.\nkf create-space my-space --run-env=ENVIRONMENT=nonprod --stage-env=ENVIRONMENT=nonprod,JDK_VERSION=8\n```\n\n### Flags\n\n`--build-service-account=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: Service account that Builds will use.\n\n`--container-registry=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: Container registry built Apps and source code will be stored in.\n\n`--domain=`\u003cvar translate=\"no\"\u003estringArray\u003c/var\u003e\n\n: Sets the valid domains for the Space. The first provided domain is the default.\n\n`-h, --help`\n\n: help for create-space\n\n`--run-env=`\u003cvar translate=\"no\"\u003estringToString\u003c/var\u003e\n\n: Sets the running environment variables for all Apps in the Space.\n\n`--stage-env=`\u003cvar translate=\"no\"\u003estringToString\u003c/var\u003e\n\n: Sets the staging environment variables for all Builds in the Space.\n\n### Inherited flags\n\nThese flags are inherited from parent commands.\n\n`--as=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: Username to impersonate for the operation.\n\n`--as-group=`\u003cvar translate=\"no\"\u003estrings\u003c/var\u003e\n\n: Group to impersonate for the operation. Include this flag multiple times to specify multiple groups.\n\n`--config=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: Path to the Kf config file to use for CLI requests.\n\n`--kubeconfig=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: Path to the kubeconfig file to use for CLI requests.\n\n`--log-http`\n\n: Log HTTP requests to standard error.\n\n`--space=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: Space to run the command against. This flag overrides the currently targeted Space."]]