{"modulePath":"github.com/OctopusDeploy/cli","version":"v1.7.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package deploy\n\n## Constants\n\n```go\nconst (\n\tFlagProject = \"project\"\n\n\tFlagReleaseVersion           = \"version\"\n\tFlagAliasReleaseNumberLegacy = \"releaseNumber\"\n\n\tFlagEnvironment         = \"environment\" // can be specified multiple times; but only once if tenanted\n\tFlagAliasEnv            = \"env\"\n\tFlagAliasDeployToLegacy = \"deployTo\" // alias for environment\n\n\tFlagTenant = \"tenant\" // can be specified multiple times\n\n\tFlagTenantTag            = \"tenant-tag\" // can be specified multiple times\n\tFlagAliasTag             = \"tag\"\n\tFlagAliasTenantTagLegacy = \"tenantTag\"\n\n\tFlagDeployAt            = \"deploy-at\" // if this is less than 1 min in the future, go now\n\tFlagAliasWhen           = \"when\"      // alias for deploy-at\n\tFlagAliasDeployAtLegacy = \"deployAt\"\n\n\tFlagDeployAtExpiry           = \"deploy-at-expiry\"\n\tFlagDeployAtExpire           = \"deploy-at-expire\"\n\tFlagAliasNoDeployAfterLegacy = \"noDeployAfter\"\n\n\tFlagSkip = \"skip\" // can be specified multiple times\n\n\tFlagGuidedFailure                = \"guided-failure\"\n\tFlagAliasGuidedFailureMode       = \"guided-failure-mode\"\n\tFlagAliasGuidedFailureModeLegacy = \"guidedFailure\"\n\n\tFlagForcePackageDownload            = \"force-package-download\"\n\tFlagAliasForcePackageDownloadLegacy = \"forcePackageDownload\"\n\n\tFlagDeploymentTarget      = \"deployment-target\"\n\tFlagAliasTarget           = \"target\"           // alias for deployment-target\n\tFlagAliasSpecificMachines = \"specificMachines\" // octo wants a comma separated list. We prefer specifying --target multiple times, but CSV also works because pflag does it for free\n\n\tFlagExcludeDeploymentTarget = \"exclude-deployment-target\"\n\tFlagAliasExcludeTarget      = \"exclude-target\"\n\tFlagAliasExcludeMachines    = \"excludeMachines\" // octo wants a comma separated list. We prefer specifying --exclude-target multiple times, but CSV also works because pflag does it for free\n\n\tFlagVariable = \"variable\"\n\n\tFlagUpdateVariables            = \"update-variables\"\n\tFlagAliasUpdateVariablesLegacy = \"updateVariables\"\n)\n```\n\n## Functions\n\n```go\nfunc AskQuestions(octopus *octopusApiClient.Client, stdout io.Writer, asker question.Asker, space *spaces.Space, options *executor.TaskOptionsDeployRelease, now func() time.Time) error\n```\n\n```go\nfunc FindDeployableEnvironmentIDs(octopus *octopusApiClient.Client, release *releases.Release) ([]string, string, error)\n```\nFindDeployableEnvironmentIDs returns an array of environment IDs that we can deploy to, the preferred 'next' environment, and an error\n\n```go\nfunc NewCmdDeploy(f factory.Factory) *cobra.Command\n```\n\n```go\nfunc PrintAdvancedSummary(stdout io.Writer, options *executor.TaskOptionsDeployRelease)\n```\n\n## Types\n\n```go\ntype DeployFlags struct {\n\tProject              *flag.Flag[string]\n\tReleaseVersion       *flag.Flag[string]   // the release to deploy\n\tEnvironments         *flag.Flag[[]string] // multiple for untenanted deployment\n\tTenants              *flag.Flag[[]string]\n\tTenantTags           *flag.Flag[[]string]\n\tDeployAt             *flag.Flag[string]\n\tMaxQueueTime         *flag.Flag[string]\n\tVariables            *flag.Flag[[]string]\n\tUpdateVariables      *flag.Flag[bool]\n\tExcludedSteps        *flag.Flag[[]string]\n\tGuidedFailureMode    *flag.Flag[string] // tri-state: true, false, or \"use default\". Can we model it with an optional bool?\n\tForcePackageDownload *flag.Flag[bool]\n\tDeploymentTargets    *flag.Flag[[]string]\n\tExcludeTargets       *flag.Flag[[]string]\n}\n```\n\n```go\nfunc NewDeployFlags() *DeployFlags\n```\n\n","path":"github.com/OctopusDeploy/cli/pkg/cmd/release/deploy","name":"deploy","synopsis":"","isRedistributable":true}
