kf xargs-apps
Name
kf xargs-apps - Run a command for every App.
Synopsis
kf xargs-apps [flags]
Description
Run a command for every App in targeted spaces.
Examples
# Example: restart all apps in all spaces
kf xargs-apps --all-namespaces -- kf restart {{.Name}} --space {{.Space}}
# Example: restage all apps in all spaces
kf xargs-apps --all-namespaces -- kf restage {{.Name}} --space {{.Space}}
# Example: stop all apps in spaces 'space1' and 'space2'
kf xargs-apps --space space1,space2 -- kf stop {{.Name}} --space {{.Space}}
# Example: use kubectl to label all apps in the default space
kf xargs-apps -- kubectl label apps -n {{.Space}} {{.Name}} environment=prodFlags
--all-namespacesEnables targeting all spaces in the cluster.
--dry-runEnables dry-run mode, commands are printed but will not be executed. (default true)
-h, --helphelp for xargs-apps
--resource-concurrency=intNumber of apps within a space that may be operated on in parallel. Total concurrency will be upto space-concurrency * app-concurrency. -1 for no limit. (default 1)
--space-concurrency=intNumber of spaces that may be operated on in parallel. -1 for no limit. (default -1)
Inherited flags
These flags are inherited from parent commands.
--as=stringUsername to impersonate for the operation.
--as-group=stringsGroup to impersonate for the operation. Include this flag multiple times to specify multiple groups.
--config=stringPath to the Kf config file to use for CLI requests.
--kubeconfig=stringPath to the kubeconfig file to use for CLI requests.
--log-httpLog HTTP requests to standard error.
--space=stringSpace to run the command against. This flag overrides the currently targeted Space.