command

package
v1.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 52 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "force",
	Short: "force CLI",
	Run: func(cmd *cobra.Command, args []string) {
		cmd.Help()
		os.Exit(1)
	},
	DisableFlagsInUseLine: true,
}
View Source
var ScratchEditionIds = map[ScratchEdition][]string{
	Developer:           {"Developer"},
	Enterprise:          {"Enterprise"},
	Group:               {"Group"},
	Professional:        {"Professional"},
	PartnerDeveloper:    {"Partner Developer", "PartnerDeveloper"},
	PartnerEnterprise:   {"Partner Enterprise", "PartnerEnterprise"},
	PartnerGroup:        {"Partner Group", "PartnerGroup"},
	PartnerProfessional: {"Partner Professional", "PartnerProfessional"},
}

The first value for each edition is the ScratchOrgInfo Edition picklist value sent to Salesforce; any additional values are accepted flag aliases.

View Source
var ScratchFeatureIds = map[ScratchFeature][]string{
	PersonAccounts:                    {"PersonAccounts"},
	B2BCommerce:                       {"B2BCommerce"},
	ContactsToMultipleAccounts:        {"ContactsToMultipleAccounts"},
	FinancialServicesUser:             {"FinancialServicesUser"},
	StateAndCountryPicklist:           {"StateAndCountryPicklist"},
	Communities:                       {"Communities"},
	HealthCloudAddOn:                  {"HealthCloudAddOn"},
	HealthCloudUser:                   {"HealthCloudUser"},
	ApexUserModeWithPermset:           {"ApexUserModeWithPermset"},
	EventLogFile:                      {"EventLogFile"},
	AnalyticsAdminPerms:               {"AnalyticsAdminPerms"},
	WavePlatform:                      {"WavePlatform"},
	InsightsPlatform:                  {"InsightsPlatform"},
	EinsteinAnalyticsPlus:             {"EinsteinAnalyticsPlus"},
	EinsteinBuilderFree:               {"EinsteinBuilderFree"},
	DevelopmentWave:                   {"DevelopmentWave"},
	PlatformCache:                     {"PlatformCache"},
	ServiceCloud:                      {"ServiceCloud"},
	ScvMultipartyAndConsult:           {"ScvMultipartyAndConsult"},
	ServiceCloudVoicePartnerTelephony: {"ServiceCloudVoicePartnerTelephony"},
	OrderManagement:                   {"OrderManagement"},
	LiveAgent:                         {"LiveAgent"},
	PlatformEncryption:                {"PlatformEncryption"},
	RevSubscriptionManagement:         {"RevSubscriptionManagement"},
	CoreCpq:                           {"CoreCpq"},
	Knowledge:                         {"Knowledge"},
	DSARPortability:                   {"DSARPortability"},
	ProgramManagement:                 {"ProgramManagement"},
	EnableSetPasswordInApi:            {"EnableSetPasswordInApi"},
	OrderSaveLogicEnabled:             {"OrderSaveLogicEnabled"},
	PartnerCommunity:                  {"PartnerCommunity"},
	CustomerCommunityPlus:             {"CustomerCommunityPlus"},
	UsageManagement:                   {"UsageManagement"},
	BillingAdvanced:                   {"BillingAdvanced"},
	DocGen:                            {"DocGen"},
	Einstein1AIPlatform:               {"Einstein1AIPlatform"},
	EmbeddedServiceMessaging:          {"EmbeddedServiceMessaging"},
	BYOOTT:                            {"BYOOTT"},
	LiveMessage:                       {"LiveMessage"},
	Enablement:                        {"Enablement"},
	SurveyAdvancedFeatures:            {"SurveyAdvancedFeatures"},
	Slack:                             {"Slack"},
	EducationCloud:                    {"EducationCloud"},
	AccountingSubledgerGrowthEdition:  {"AccountingSubledgerGrowthEdition"},
	AccountingSubledgerUser:           {"AccountingSubledgerUser"},
	AdmissionsConnectUser:             {"AdmissionsConnectUser"},
	AdvisorLinkFeature:                {"AdvisorLinkFeature"},
	AdvisorLinkPathwaysFeature:        {"AdvisorLinkPathwaysFeature"},
	AnalyticsQueryService:             {"AnalyticsQueryService"},
	Assessments:                       {"Assessments"},
	DataProcessingEngine:              {"DataProcessingEngine"},
	DecisionTable:                     {"DecisionTable"},
	DocGenDesigner:                    {"DocGenDesigner"},
	DocGenInd:                         {"DocGenInd"},
	DocumentChecklist:                 {"DocumentChecklist"},
	FlowSites:                         {"FlowSites"},
	Fundraising:                       {"Fundraising"},
	IndustriesActionPlan:              {"IndustriesActionPlan"},
	IndustriesSalesExcellenceAddOn:    {"IndustriesSalesExcellenceAddOn"},
	IndustriesServiceExcellenceAddOn:  {"IndustriesServiceExcellenceAddOn"},
	LightningScheduler:                {"LightningScheduler"},
	LightningServiceConsole:           {"LightningServiceConsole"},
	MarketingUser:                     {"MarketingUser"},
	OmniStudioDesigner:                {"OmniStudioDesigner"},
	OmniStudioRuntime:                 {"OmniStudioRuntime"},
	PublicSectorAccess:                {"PublicSectorAccess"},
	SharedActivities:                  {"SharedActivities"},
	HighVelocitySales:                 {"HighVelocitySales"},
	InvoiceManagement:                 {"InvoiceManagement"},
	WorkplaceCommandCenterUser:        {"WorkplaceCommandCenterUser"},
	ForceComPlatform:                  {"ForceComPlatform"},
	Division:                          {"Division"},
	Grantmaking:                       {"Grantmaking"},
	OutcomeManagement:                 {"OutcomeManagement"},
	NonprofitCloudCaseManagementUser:  {"NonprofitCloudCaseManagementUser"},
	VolunteerManagement:               {"VolunteerManagement"},
	FinancialServicesInsuranceUser:    {"FinancialServicesInsuranceUser"},
	FSCAlertFramework:                 {"FSCAlertFramework"},
	FSCServiceProcess:                 {"FSCServiceProcess"},
	IndustriesBranchManagement:        {"IndustriesBranchManagement"},
	IndustriesCompliantDataSharing:    {"IndustriesCompliantDataSharing"},
	InsuranceCalculationUser:          {"InsuranceCalculationUser"},
	InsuranceClaimMgmt:                {"InsuranceClaimMgmt"},
	InsurancePolicyAdmin:              {"InsurancePolicyAdmin"},
	BusinessRulesEngine:               {"BusinessRulesEngine"},
	ApexIntegrationTests:              {"ApexIntegrationTests"},
}
View Source
var ScratchProductIds = map[ScratchProduct][]string{
	FSC:                   {"fsc"},
	CommunitiesProduct:    {"communities"},
	HealthCloudProduct:    {"healthcloud"},
	CRMAnalyticsProduct:   {"crmanalytics"},
	B2BCommerceProduct:    {"b2bcommerce"},
	LiveAgentProduct:      {"liveagent"},
	KnowledgeProduct:      {"knowledge"},
	RevenueCloudProduct:   {"revenuecloud"},
	MessagingProduct:      {"messaging"},
	EducationCloudProduct: {"educationcloud"},
	WorkComProduct:        {"work.com"},
	NonprofitCloudProduct: {"nonprofitcloud"},
}
View Source
var ScratchReleaseIds = map[ScratchRelease][]string{
	ReleaseDefault:  {""},
	ReleasePreview:  {"preview"},
	ReleasePrevious: {"previous"},
}
View Source
var ScratchSettingIds = map[ScratchSetting][]string{
	EnableEnhancedNotes:                   {"enableEnhancedNotes"},
	EnableQuote:                           {"enableQuote"},
	NetworksEnabled:                       {"networksEnabled"},
	CommerceEnabled:                       {"commerceEnabled"},
	EnableApexApprovalLockUnlock:          {"enableApexApprovalLockUnlock"},
	PermsetsInFieldCreation:               {"permsetsInFieldCreation"},
	EnableLightningPreviewPref:            {"enableLightningPreviewPref"},
	EnableOrders:                          {"enableOrders"},
	EnableEnhancedCommerceOrders:          {"enableEnhancedCommerceOrders"},
	EnableLiveAgent:                       {"enableLiveAgent"},
	EnableMultiCurrency:                   {"enableMultiCurrency"},
	EnableCoreCPQ:                         {"enableCoreCPQ"},
	EnableSubscriptionManagement:          {"enableSubscriptionManagement"},
	EnableKnowledge:                       {"enableKnowledge"},
	EnableLightningKnowledge:              {"enableLightningKnowledge"},
	EnableBillingSetup:                    {"enableBillingSetup"},
	EnableExperienceBundleMetadata:        {"enableExperienceBundleMetadata"},
	EnableS1DesktopEnabled:                {"enableS1DesktopEnabled"},
	EnableContextDefinitions:              {"enableContextDefinitions"},
	EnableEinsteinGptPlatform:             {"enableEinsteinGptPlatform"},
	EnableOpportunityTeam:                 {"enableOpportunityTeam"},
	EnableOrderManagementSetting:          {"enableOrderManagement"},
	EnableOrderEvents:                     {"enableOrderEvents"},
	EnableOptionalPricebook:               {"enableOptionalPricebook"},
	EnableZeroQuantity:                    {"enableZeroQuantity"},
	EnableNegativeQuantity:                {"enableNegativeQuantity"},
	EnableQuotesWithoutOppEnabled:         {"enableQuotesWithoutOppEnabled"},
	EnableHighAvailability:                {"enableHighAvailability"},
	EnablePricingWaterfall:                {"enablePricingWaterfall"},
	EnablePricingWaterfallPersistence:     {"enablePricingWaterfallPersistence"},
	EnableSalesforcePricing:               {"enableSalesforcePricing"},
	EnableRating:                          {"enableRating"},
	EnableRatingWaterfall:                 {"enableRatingWaterfall"},
	EnableRatingWaterfallPersistence:      {"enableRatingWaterfallPersistence"},
	EnableProductConfigurator:             {"enableProductConfigurator"},
	EnableDFOPref:                         {"enableDFOPref"},
	EnableRelateContactToMultipleAccounts: {"enableRelateContactToMultipleAccounts"},
	EnableDisableParallelApexTesting:      {"enableDisableParallelApexTesting"},
	EnableChatter:                         {"enableChatter"},
	EnableCommunityWorkspaces:             {"enableCommunityWorkspaces"},
	DeleteDCIWithFiles:                    {"deleteDCIWithFiles"},
	EnableForecasts:                       {"enableForecasts"},
	EnableS1EncryptedStoragePref2:         {"enableS1EncryptedStoragePref2"},
	EnableAcademicOperations:              {"enableAcademicOperations"},
	EnableAlumniRelations:                 {"enableAlumniRelations"},
	EnableBenefitManagementPreference:     {"enableBenefitManagementPreference"},
	EnableBenefitAndGoalSharingPref:       {"enableBenefitAndGoalSharingPref"},
	EnableCarePlansPreference:             {"enableCarePlansPreference"},
	EnableDiscoveryFrameworkMetadata:      {"enableDiscoveryFrameworkMetadata"},
	EnableEducationCloud:                  {"enableEducationCloud"},
	EnableFundraising:                     {"enableFundraising"},
	EnableGroupMembershipPref:             {"enableGroupMembershipPref"},
	EnableIndustriesAssessment:            {"enableIndustriesAssessment"},
	EnableInteractionSummaryPref:          {"enableInteractionSummaryPref"},
	EnableInteractionSummaryRoleHierarchy: {"enableInteractionSummaryRoleHierarchy"},
	EnableStudentSuccess:                  {"enableStudentSuccess"},
	EnableInterestTagging:                 {"enableInterestTagging"},
	EnableMiddleName:                      {"enableMiddleName"},
	EnableNameSuffix:                      {"enableNameSuffix"},
	EnableRevenueSchedule:                 {"enableRevenueSchedule"},
	EnableEnhancedPermsetMgmt:             {"enableEnhancedPermsetMgmt"},
	EnableEnhancedProfileMgmt:             {"enableEnhancedProfileMgmt"},
	EnableNewProfileUI:                    {"enableNewProfileUI"},
	EnableSurvey:                          {"enableSurvey"},

	EnableGrantmaking:                                  {"enableGrantmaking"},
	EnableOutcomes:                                     {"enableOutcomes"},
	EnableCompliantDataSharingForBudget:                {"enableCompliantDataSharingForBudget"},
	EnableCompliantDataSharingForIndividualApplication: {"enableCompliantDataSharingForIndividualApplication"},
	EnableCompliantDataSharingForFundingAward:          {"enableCompliantDataSharingForFundingAward"},
	EnableDisbursementPreference:                       {"enableDisbursementPreference"},
	EnableGiftAgreement:                                {"enableGiftAgreement"},
	EnableGiftEntryGrid:                                {"enableGiftEntryGrid"},
	EnableGiftPlanning:                                 {"enableGiftPlanning"},
	EnableProgramCohorts:                               {"enableProgramCohorts"},
	EnableRecordRollup:                                 {"enableRecordRollup"},
	EnableVolunteerManagement:                          {"enableVolunteerManagement"},
}

Functions

func CombineBatchResults added in v1.14.0

func CombineBatchResults(contentType string, results [][]byte) ([]byte, error)

CombineBatchResults joins the result documents of a job's batches. Each CSV result contains a header row, which is kept only for the first non-empty result. Each JSON result is an array of objects; the objects from every batch are written as JSON Lines, one object per line. Results in other formats are separated by a newline.

func Execute added in v0.99.0

func Execute()

func GenerateIntegrationTestResults added in v1.9.0

func GenerateIntegrationTestResults(result IntegrationTestResult) string

GenerateIntegrationTestResults formats an IntegrationTestResult for display.

func GenerateResults added in v0.23.0

func GenerateResults(output TestCoverage) string

func GetDataPipelineId

func GetDataPipelineId(name string) (id string)

func QualifyMethods added in v0.22.83

func QualifyMethods(class string, methods []string) []string

func RunTests

func RunTests(testRunner TestRunner, tests []string, namespace string) (output TestCoverage, err error)

func SplitCSV added in v0.22.81

func SplitCSV(csvFilePath string, batchsize int) (batches []string, err error)

Types

type CustomObject

type CustomObject struct {
	// contains filtered or unexported fields
}

type DestructivePackage added in v1.0.9

type DestructivePackage struct {
	XMLName xml.Name          `xml:"Package"`
	Xmlns   string            `xml:"xmlns,attr"`
	Types   []DestructiveType `xml:"types"`
	Version string            `xml:"version"`
}

DestructivePackage represents a destructiveChangesPost.xml structure

type DestructiveType added in v1.0.9

type DestructiveType struct {
	Members []string `xml:"members"`
	Name    string   `xml:"name"`
}

DestructiveType lists metadata members to delete

type FLS

type FLS struct {
	// contains filtered or unexported fields
}

type OLS

type OLS struct {
	// contains filtered or unexported fields
}

type Profile

type Profile struct {
	// contains filtered or unexported fields
}

type ScratchEdition added in v1.5.0

type ScratchEdition enumflag.Flag
const (
	Developer ScratchEdition = iota
	Enterprise
	Group
	Professional
	PartnerDeveloper
	PartnerEnterprise
	PartnerGroup
	PartnerProfessional
)

type ScratchFeature added in v1.5.0

type ScratchFeature enumflag.Flag
const (
	PersonAccounts ScratchFeature = iota
	B2BCommerce
	ContactsToMultipleAccounts
	FinancialServicesUser
	StateAndCountryPicklist
	Communities
	HealthCloudAddOn
	HealthCloudUser
	ApexUserModeWithPermset
	EventLogFile
	AnalyticsAdminPerms
	WavePlatform
	InsightsPlatform
	EinsteinAnalyticsPlus
	EinsteinBuilderFree
	DevelopmentWave
	PlatformCache
	ServiceCloud
	ScvMultipartyAndConsult
	ServiceCloudVoicePartnerTelephony
	OrderManagement
	LiveAgent
	PlatformEncryption
	RevSubscriptionManagement
	CoreCpq
	Knowledge
	DSARPortability
	ProgramManagement
	EnableSetPasswordInApi
	OrderSaveLogicEnabled
	PartnerCommunity
	CustomerCommunityPlus
	UsageManagement
	BillingAdvanced
	DocGen
	Einstein1AIPlatform
	EmbeddedServiceMessaging
	BYOOTT
	LiveMessage
	Enablement
	SurveyAdvancedFeatures
	Slack
	EducationCloud
	AccountingSubledgerGrowthEdition
	AccountingSubledgerUser
	AdmissionsConnectUser
	AdvisorLinkFeature
	AdvisorLinkPathwaysFeature
	AnalyticsQueryService
	Assessments
	DataProcessingEngine
	DecisionTable
	DocGenDesigner
	DocGenInd
	DocumentChecklist
	FlowSites
	Fundraising
	IndustriesActionPlan
	IndustriesSalesExcellenceAddOn
	IndustriesServiceExcellenceAddOn
	LightningScheduler
	LightningServiceConsole
	MarketingUser
	OmniStudioDesigner
	OmniStudioRuntime
	PublicSectorAccess
	SharedActivities
	HighVelocitySales
	InvoiceManagement
	WorkplaceCommandCenterUser
	ForceComPlatform
	Division
	Grantmaking
	OutcomeManagement
	NonprofitCloudCaseManagementUser
	VolunteerManagement
	FinancialServicesInsuranceUser
	FSCAlertFramework
	FSCServiceProcess
	IndustriesBranchManagement
	IndustriesCompliantDataSharing
	InsuranceCalculationUser
	InsuranceClaimMgmt
	InsurancePolicyAdmin
	BusinessRulesEngine
	ApexIntegrationTests
)

type ScratchProduct added in v1.5.0

type ScratchProduct enumflag.Flag
const (
	FSC ScratchProduct = iota
	CommunitiesProduct
	HealthCloudProduct
	CRMAnalyticsProduct
	B2BCommerceProduct
	LiveAgentProduct
	KnowledgeProduct
	RevenueCloudProduct
	MessagingProduct
	EducationCloudProduct
	WorkComProduct
	NonprofitCloudProduct
)

type ScratchRelease added in v1.7.0

type ScratchRelease enumflag.Flag
const (
	ReleaseDefault ScratchRelease = iota
	ReleasePreview
	ReleasePrevious
)

type ScratchSetting added in v1.5.0

type ScratchSetting enumflag.Flag
const (
	EnableEnhancedNotes ScratchSetting = iota
	EnableQuote
	NetworksEnabled
	CommerceEnabled
	EnableApexApprovalLockUnlock
	PermsetsInFieldCreation
	EnableLightningPreviewPref
	EnableOrders
	EnableEnhancedCommerceOrders
	EnableLiveAgent
	EnableMultiCurrency
	EnableCoreCPQ
	EnableSubscriptionManagement
	EnableKnowledge
	EnableLightningKnowledge
	EnableBillingSetup
	EnableExperienceBundleMetadata
	EnableS1DesktopEnabled
	EnableContextDefinitions
	EnableEinsteinGptPlatform
	EnableOpportunityTeam
	EnableOrderManagementSetting
	EnableOrderEvents
	EnableOptionalPricebook
	EnableZeroQuantity
	EnableNegativeQuantity
	EnableQuotesWithoutOppEnabled
	EnableHighAvailability
	EnablePricingWaterfall
	EnablePricingWaterfallPersistence
	EnableSalesforcePricing
	EnableRating
	EnableRatingWaterfall
	EnableRatingWaterfallPersistence
	EnableProductConfigurator
	EnableDFOPref
	EnableRelateContactToMultipleAccounts
	EnableDisableParallelApexTesting
	EnableChatter
	EnableCommunityWorkspaces
	DeleteDCIWithFiles
	EnableForecasts
	EnableS1EncryptedStoragePref2
	EnableAcademicOperations
	EnableAlumniRelations
	EnableBenefitManagementPreference
	EnableBenefitAndGoalSharingPref
	EnableCarePlansPreference
	EnableDiscoveryFrameworkMetadata
	EnableEducationCloud
	EnableFundraising
	EnableGroupMembershipPref
	EnableIndustriesAssessment
	EnableInteractionSummaryPref
	EnableInteractionSummaryRoleHierarchy
	EnableStudentSuccess
	EnableInterestTagging
	EnableMiddleName
	EnableNameSuffix
	EnableRevenueSchedule
	EnableEnhancedPermsetMgmt
	EnableEnhancedProfileMgmt
	EnableNewProfileUI
	EnableSurvey
	EnableGrantmaking
	EnableOutcomes
	EnableCompliantDataSharingForBudget
	EnableCompliantDataSharingForIndividualApplication
	EnableCompliantDataSharingForFundingAward
	EnableDisbursementPreference
	EnableGiftAgreement
	EnableGiftEntryGrid
	EnableGiftPlanning
	EnableProgramCohorts
	EnableRecordRollup
	EnableVolunteerManagement
)

type XLS

type XLS interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL