kf create-space

Name

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

Synopsis

kf create-space NAME [flags]

Examples

# 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

Flags

--build-service-account=string

Service account that Builds will use.

--container-registry=string

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

--domain=stringArray

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

-h, --help

help for create-space

--run-env=stringToString

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

--stage-env=stringToString

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

Inherited flags

These flags are inherited from parent commands.

--as=string

Username to impersonate for the operation.

--as-group=strings

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

--config=string

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

--kubeconfig=string

Path to the kubeconfig file to use for CLI requests.

--log-http

Log HTTP requests to standard error.

--space=string

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