Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Nombre
kf create-space: Crea un espacio con el nombre determinado.
Sinopsis
kf create-space NAME [flags]
Ejemplos
# 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
Marcas
--build-service-account=string
Cuenta de servicio que usarán las compilaciones.
--container-registry=string
Se almacenarán las apps compiladas y el código fuente de Container Registry.
--domain=stringArray
Configura los dominios válidos para el espacio. El primer dominio proporcionado es el predeterminado.
-h, --help
ayuda para create-space
--run-env=stringToString
Configura las variables de entorno en ejecución para todas las apps del espacio.
--stage-env=stringToString
Configura las variables de entorno de etapa de pruebas para todas las compilaciones del espacio.
Marcas heredadas
Estas marcas se heredan de los comandos superiores.
--as=string
Nombre de usuario que se usará en la operación.
--as-group=strings
Grupo que se usará en la operación. Incluye esta marca varias veces para especificar varios grupos.
--config=string
Ruta de acceso al archivo de configuración de Kf que se usará para las solicitudes de la CLI.
--kubeconfig=string
Ruta de acceso al archivo kubeconfig que se usará para las solicitudes de la CLI.
--log-http
Registra las solicitudes HTTP como error estándar.
--space=string
Espacio para ejecutar el comando. Esto anula el espacio de destino actual.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 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."]]