Versions in this module Expand all Collapse all v8 v8.18.3 Apr 15, 2026 v8.18.2 Apr 13, 2026 v8.18.1 Apr 9, 2026 v8.18.0 Mar 4, 2026 v8.17.1 Feb 12, 2026 v8.17.0 Nov 18, 2025 Changes in this version + const DebugCommandPrefix + const DebugCommandPrefixWithDir + const DebugErrPrefix + const DebugOutPrefix + const DefaultAuthorizationPath + const DefaultV2Version + const DefaultV3Version + const GUIDRegex + const ISO8601Regex + const MaxTestPort + const MinTestPort + const ModernStaticfileBuildpackStartCommand + const ModernStaticfileBuildpackStartCommandRegex + const NonUAAOrigin + const ReadableDateTimeRegex + const StaticfileBuildpackStartCommand + const TimestampRegex + const UserFriendlyDateRegex + const V7 + var CcRootCache *ccRoot + func AddEmptyPaginatedResponse(server *ghttp.Server, path string) + func AddFiftyOneOrgs(server *ghttp.Server) + func AddFiftyOneSpaces(server *ghttp.Server) + func AddHandler(ser *ghttp.Server, method string, pathAndQuery string, status int, body []byte) + func AddLoginRoutes(s *Server) + func AddMfa(server *Server, password string, mfaToken string) + func AddOrReplaceEnvironment(env []string, newEnvName string, newEnvVal string) []string + func AppGUID(appName string) string + func AppJSON(appName string) string + func BuildConfigurablePlugin(pluginType string, name string, version string, pluginCommands []PluginCommand) string + func BuildTokenString(expiration time.Time) string + func BuildpackGUIDByNameAndStack(buildpackName string, stackName string) string + func BuildpackWithStack(f func(buildpackArchive string), stackName string) + func BuildpackWithoutStack(f func(buildpackArchive string)) + func BuildpacksOutputRegex(fields BuildpackFields) string + func CF(args ...string) *Session + func CFWithEnv(envVars map[string]string, args ...string) *Session + func CFWithStdin(stdin io.Reader, args ...string) *Session + func CNB(f func(buildpackArchive string)) + func CheckEnvironmentTargetedCorrectly(targetedOrganizationRequired bool, targetedSpaceRequired bool, testOrg string, ...) + func CheckExpectedLabels(url string, list bool, expected MetadataLabels) + func CheckSpaceAndOrgTargetedCorrectly(command ...string) + func ClearTarget() + func ClientCredentialsTestMode() bool + func ConfirmStagingLogs(session *Session) + func ConvertPathToRegularExpression(path string) string + func CreateAndTargetOrg() string + func CreateApp(app string) + func CreateManagedServiceInstance(offering, plan, name string, additional ...string) + func CreateOrg(org string) + func CreateOrgAndSpace(org string, space string) + func CreateOrgAndSpaceUnlessExists(org string, space string) + func CreateSecurityGroup(s resources.SecurityGroup) + func CreateSpace(space string) + func CreateSpaceInOrg(space string, org string) + func CreateStack(names ...string) string + func CreateStackWithGUID() (string, string) + func CreateUser() (string, string) + func CreateUserInOrgRole(org, role string) (string, string) + func CreateUserInSpaceRole(org, space, role string) (string, string) + func Curlf(obj interface{}, url string, props ...interface{}) + func CustomCF(cfEnv CFEnv, args ...string) *Session + func DebugCustomCF(cfEnv CFEnv, args ...string) *Session + func DefaultSharedDomain() string + func DeleteBuildpackIfOnOldCCAPI(buildpackName string) + func DeleteSecurityGroup(s resources.SecurityGroup) + func DeleteStack(name string) + func DeleteUser(username string) + func DestroyHomeDir(homeDir string) + func DisableFeatureFlag(flagName string) + func DomainName(prefix ...string) string + func EnableFeatureFlag(flagName string) + func EnsureMinimumNumberOfStacks(num int) []string + func ExpiredAccessToken() string + func FetchStacks() []string + func FindOrCreateTCPRouterGroup(node int) string + func GenerateHigherName(randomNameGenerator func() string, names ...string) string + func GenerateLowerName(randomNameGenerator func() string, names ...string) string + func GetAPI() string + func GetAPIVersionV2() string + func GetAppDroplet(appGUID string) string + func GetConfig() *configv3.Config + func GetCredentials() (string, string) + func GetFirstAppPackageGuid(appName string) string + func GetIsolationSegmentGUID(name string) string + func GetOrgGUID(orgName string) string + func GetPackageFirstDroplet(packageGUID string) string + func GetPort() int + func GetSpaceGUID(spaceName string) string + func GetsDefaultEnvVarValue(stream []byte) string + func GetsEnablementValue(stream []byte) bool + func InstallConfigurablePlugin(pluginType string, name string, version string, pluginCommands []PluginCommand) + func IsUAAVersionAtLeast(minVersion string) bool + func IsVersionMet(minVersion string) bool + func IsWindows() bool + func LoginAs(username, password string) + func LoginCF() string + func LoginCFWithClientCredentials() string + func LogoutCF() + func MakeBuildpackArchive(stackName string) string + func MakeCNBArchive() string + func MapRouteToApplication(app string, domain string, host string, path string) + func NewAppName() string + func NewBuildpackName() string + func NewDomainName(prefix ...string) string + func NewHostName() string + func NewIsolationSegmentName(infix ...string) string + func NewOptions() map[string]*string + func NewOrgName() string + func NewOrgQuotaName() string + func NewPassword() string + func NewPath() string + func NewPlanName() string + func NewPluginRepositoryServer(pluginRepo PluginRepository) *Server + func NewPluginRepositoryTLSServer(pluginRepo PluginRepository) *Server + func NewRouterGroupName() string + func NewSecurityGroup(name string, protocol string, destination string, ports *string, ...) resources.SecurityGroup + func NewSecurityGroupName(infix ...string) string + func NewServiceBrokerName() string + func NewServiceInstanceName() string + func NewServiceOfferingName() string + func NewSpaceName() string + func NewStackName() string + func NewUsername() string + func ParseTokenString(token string) jwt.JWT + func PluginPlatform() string + func PreferredStack() string + func PrefixedRandomName(namePrefix string) string + func QuickDeleteApp(appName string) + func QuickDeleteOrg(orgName string) + func QuickDeleteOrgIfExists(orgName string) + func QuickDeleteSpace(spaceName string) + func QuotaName(name ...string) string + func RandomName() string + func RandomPort() int + func RandomURL() string + func ReadManifest(path string) map[string]interface + func SayPath(format string, path string) types.GomegaMatcher + func ServiceInstanceGUID(serviceInstanceName string) string + func SetAPI() (string, bool) + func SetConfig(cb func(conf *configv3.Config)) + func SetConfigContent(dir string, rawConfig string) + func SetHomeDir() string + func SetOrgRole(username, org, role string, isClient bool) + func SetSpaceRole(username, org, space, role string, isClient bool) + func SetupBuildpackWithStack(buildpackName, stack string) + func SetupBuildpackWithoutStack(buildpackName string) + func SetupCF(org string, space string) + func SetupCFWithGeneratedOrgAndSpaceNames() string + func SetupCFWithOrgOnly(org string) + func SetupReadOnlyOrgAndSpace() (string, string) + func SetupSynchronizedSuite(setup func()) + func Sha1Sum(path string) string + func SkipIfClientCredentialsNotSet() (string, string) + func SkipIfClientCredentialsTestMode() + func SkipIfCustomClientCredentialsNotSet() (string, string) + func SkipIfNoRoutingAPI() + func SkipIfOIDCCredentialsNotSet() (string, string) + func SkipIfPrivateDockerInfoNotSet() (string, string, string) + func SkipIfUAAVersionAtLeast(version string) + func SkipIfUAAVersionLessThan(version string) + func SkipIfV7() + func SkipIfV7AndVersionLessThan(minVersion string) + func SkipIfVersionAtLeast(maxVersion string) + func SkipIfVersionLessThan(minVersion string) + func SkipIfWindows() + func SkipSSLValidation() bool + func StartAndTargetMockServerWithAPIVersions(v2Version string, v3Version string) *Server + func StartMockServerWithAPIVersions(v2Version string, v3Version string) *Server + func StartMockServerWithCustomAuthorizationEndpoint(authorizationPath string) *Server + func StartMockServerWithMinimumCLIVersion(minCLIVersion string) *Server + func SwitchToNoRole() string + func SwitchToOrgRole(org, role string) string + func SwitchToSpaceRole(org, space, role string) string + func TargetOrg(org string) + func TargetOrgAndSpace(org string, space string) + func TempDirAbsolutePath(dir string, prefix string) string + func TempFileAbsolutePath(dir string, pattern string) *os.File + func TempFileWithContent(contents string) string + func TurnOffColors() + func TurnOffExperimental() + func TurnOnExperimental() + func UnmapRouteFromApplication(app string, domain string, host string, path string) + func UnrefactoredCheckEnvironmentTargetedCorrectly(targetedOrganizationRequired bool, targetedSpaceRequired bool, testOrg string, ...) + func UnsetAPI() + func VerifyAppPackageContentsV2(appName string, files ...string) + func VerifyAppPackageContentsV3(appName string, files ...string) + func WaitForAppDiskToTakeEffect(appName string, processIndex int, instanceIndex int, shouldRestartFirst bool, ...) + func WaitForAppMemoryToTakeEffect(appName string, processIndex int, instanceIndex int, shouldRestartFirst bool, ...) + func WaitForLogRateLimitToTakeEffect(appName string, processIndex int, instanceIndex int, shouldRestartFirst bool, ...) + func WithBananaPantsApp(f func(dir string)) + func WithCrashingApp(f func(dir string)) + func WithEmptyFilesApp(f func(dir string)) + func WithHelloWorldApp(f func(dir string)) + func WithJSHelloWorld(f func(dir string)) + func WithMultiBuildpackApp(f func(dir string)) + func WithMultiEndpointApp(f func(dir string)) + func WithNoResourceMatchedApp(f func(dir string)) + func WithProcfileApp(f func(dir string)) + func WithRandomHomeDir(action func()) + func WithSidecarApp(f func(dir string), appName string) + func WithTaskApp(f func(dir string), appName string) + func WriteCommand(workingDir string, env map[string]string, args []string) + func WriteManifest(path string, manifest map[string]interface{}) + func Zipit(source, target, prefix string) error + type AppInstanceRow struct + CPU string + CPUEntitlement string + Details string + Disk string + Index string + LogRate string + Memory string + Ready string + Since string + State string + type AppProcessTable struct + InstanceCount string + Instances []AppInstanceRow + MemUsage string + Sidecars string + Type string + type AppTable struct + Processes []AppProcessTable + func ParseV3AppProcessTable(input []byte) AppTable + type Binary struct + Checksum string + Platform string + URL string + type Buildpack struct + GUID string + Name string + Stack string + type BuildpackFields struct + Enabled string + Filename string + Lifecycle string + Locked string + Name string + Position string + Stack string + type BuildpackList struct + Buildpacks []Buildpack + type CFEnv struct + EnvVars map[string]string + Stdin io.Reader + WorkingDirectory string + type Domain struct + Name string + Org string + func NewDomain(org string, name string) Domain + func (d Domain) Create() + func (d Domain) CreateInternal() + func (d Domain) CreatePrivate() + func (d Domain) CreateShared() + func (d Domain) CreateWithRouterGroup(routerGroup string) + func (d Domain) Delete() + func (d Domain) DeletePrivate() + func (d Domain) DeleteShared() + func (d Domain) V7Share(orgName string) + type MetadataLabels map[string]string + type Plugin struct + Binaries []Binary + Name string + Version string + type PluginCommand struct + Alias string + Help string + Name string + type PluginRepository struct + Plugins []Plugin + type PluginRepositoryServerWithPlugin struct + func NewPluginRepositoryServerWithPlugin(pluginType string, pluginName string, version string, platform string, ...) *PluginRepositoryServerWithPlugin + func (pluginRepoServer *PluginRepositoryServerWithPlugin) Cleanup() + func (pluginRepoServer *PluginRepositoryServerWithPlugin) Init(pluginType string, pluginName string, version string, platform string, ...) + func (pluginRepoServer *PluginRepositoryServerWithPlugin) PluginSize() int64 + func (pluginRepoServer *PluginRepositoryServerWithPlugin) URL() string + type Route struct + Domain string + Host string + Options map[string]*string + Path string + Port int + Space string + func NewRoute(space string, domain string, hostname string, path string, ...) Route + func NewTCPRoute(space string, domain string, port int, options map[string]*string) Route + func (r Route) Create() + func (r Route) Delete() + func (r Route) GUID() string + func (r Route) String() string + func (r Route) V7Create() + type RouterGroup struct + Name string + ReservablePorts string + func NewRouterGroup(name, reservablePorts string) RouterGroup + func (rg *RouterGroup) Create() + func (rg *RouterGroup) Delete() + type UAAVersion struct + App struct{ ... } + func (v UAAVersion) Version() string + type User struct + CreatedAt time.Time + GUID string + Origin string + Username string + func GetUsers() []User + func GetUsersV3() []User Other modules containing this package code.cloudfoundry.org/cli