kf create-space


kf create-space - Create a Space with the given name.


kf create-space NAME [flags]


# 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



Service account that Builds will use.


Container registry built Apps and source code will be stored in.


Sets the valid domains for the Space. The first provided domain is the default.

-h, --help

help for create-space


Sets the running environment variables for all Apps in the Space.


Sets the staging environment variables for all Builds in the Space.

Inherited flags

These flags are inherited from parent commands.


Username to impersonate for the operation.


Group to impersonate for the operation. Include this flag multiple times to specify multiple groups.


Path to the Kf config file to use for CLI requests.


Path to the kubeconfig file to use for CLI requests.


Log HTTP requests to standard error.


Space to run the command against. This flag overrides the currently targeted Space.