abra/cli/app/deploy.go

38 lines
1.0 KiB
Go
Raw Normal View History

package app
import (
2021-09-01 12:03:39 +00:00
"coopcloud.tech/abra/cli/internal"
2021-12-11 23:17:39 +00:00
"coopcloud.tech/abra/pkg/autocomplete"
"github.com/urfave/cli"
)
var appDeployCommand = cli.Command{
2022-01-25 12:48:04 +00:00
Name: "deploy",
Aliases: []string{"d"},
Usage: "Deploy an app",
ArgsUsage: "<domain>",
Flags: []cli.Flag{
internal.DebugFlag,
internal.NoInputFlag,
internal.ForceFlag,
internal.ChaosFlag,
internal.NoDomainChecksFlag,
internal.DontWaitConvergeFlag,
},
Before: internal.SubCommandBefore,
Description: `
2021-12-28 01:01:50 +00:00
This command deploys an app. It does not support incrementing the version of a
2022-01-25 12:48:04 +00:00
deployed app, for this you need to look at the "abra app upgrade <domain>"
2021-12-28 01:01:50 +00:00
command.
You may pass "--force" to re-deploy the same version again. This can be useful
2021-10-18 06:35:59 +00:00
if the container runtime has gotten into a weird state.
Chas mode ("--chaos") will deploy your local checkout of a recipe as-is,
including unstaged changes and can be useful for live hacking and testing new
recipes.
`,
2021-12-11 23:17:39 +00:00
Action: internal.DeployAction,
BashComplete: autocomplete.AppNameComplete,
}