Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmd/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ func getAgentAuthType(logger logger.Logger, authType string) string {
default:
}
}

auth := tui.Select(logger, "Select your Agent's webhook authentication method", "Do you want to secure the webhook or make it publicly available?", []tui.Option{
{Text: tui.PadRight("API Key", 10, " ") + tui.Muted("Bearer Token (will be generated for you)"), ID: "bearer"},
{Text: tui.PadRight("None", 10, " ") + tui.Muted("No Authentication Required"), ID: "none"},
Expand Down
32 changes: 28 additions & 4 deletions cmd/cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,12 @@ type startAgent struct {
}

type startRequest struct {
Agents []startAgent `json:"agents"`
Resources *Resources `json:"resources,omitempty"`
Metadata *deployer.Metadata `json:"metadata,omitempty"`
Agents []startAgent `json:"agents"`
Resources *Resources `json:"resources,omitempty"`
Metadata *deployer.Metadata `json:"metadata,omitempty"`
Tag string `json:"tag,omitempty"`
TagMessage string `json:"tagMessage,omitempty"`
TagDescription string `json:"tagDescription,omitempty"`
}

func ShowNewProjectImport(ctx context.Context, logger logger.Logger, cmd *cobra.Command, apiUrl, apikey, projectId string, project *project.Project, dir string, isImport bool) {
Expand Down Expand Up @@ -129,11 +132,14 @@ between local and remote agents.

Flags:
--dir The directory containing the project to deploy
--tag An optional tag for this deployment
--tag-message An optional message for the tag
--tag-description An optional description for the tag

Examples:
agentuity cloud deploy
agentuity deploy
agentuity cloud deploy --dir /path/to/project`,
agentuity cloud deploy --dir /path/to/project --tag latest --tag-message "Latest Release" --tag-description "Some longer description"`,
Run: func(cmd *cobra.Command, args []string) {
parentCtx := context.Background()
ctx, cancel := signal.NotifyContext(parentCtx, os.Interrupt, syscall.SIGINT, syscall.SIGTERM)
Expand All @@ -146,6 +152,11 @@ Examples:
appUrl := context.APPURL
transportUrl := context.TransportURL
token := context.Token

tag, _ := cmd.Flags().GetString("tag")
tagMessage, _ := cmd.Flags().GetString("tag-message")
tagDescription, _ := cmd.Flags().GetString("tag-description")

ci, _ := cmd.Flags().GetBool("ci")
ciRemoteUrl, _ := cmd.Flags().GetString("ci-remote-url")
ciBranch, _ := cmd.Flags().GetString("ci-branch")
Expand Down Expand Up @@ -400,6 +411,16 @@ Examples:
},
}

if tag != "" {
startRequest.Tag = tag
}
if tagMessage != "" {
startRequest.TagMessage = tagMessage
}
if tagDescription != "" {
startRequest.TagDescription = tagDescription
}

// Start deployment
if err := client.Do("PUT", fmt.Sprintf("/cli/deploy/start/%s%s", theproject.ProjectId, deploymentId), startRequest, &startResponse); err != nil {
errsystem.New(errsystem.ErrDeployProject, err,
Expand Down Expand Up @@ -664,6 +685,9 @@ func init() {
cloudDeployCmd.Flags().String("ci-message", "", "Used to set the commit message for your deployment metadata")
cloudDeployCmd.Flags().String("ci-git-provider", "", "Used to set the git provider for your deployment metadata")
cloudDeployCmd.Flags().String("ci-logs-url", "", "Used to set the CI logs URL for your deployment metadata")
cloudDeployCmd.Flags().String("tag", "latest", "An tag for this deployment, defaults to 'latest'")
cloudDeployCmd.Flags().String("tag-message", "", "An optional message for the tag")
cloudDeployCmd.Flags().String("tag-description", "", "An optional description for the tag")

cloudDeployCmd.Flags().MarkHidden("deploymentId")
cloudDeployCmd.Flags().MarkHidden("ci")
Expand Down
8 changes: 6 additions & 2 deletions cmd/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ Examples:
fmt.Println(tui.Bold(orgNames[orgId]) + " " + tui.Muted("("+orgId+")"))
fmt.Println()

headers := []string{tui.Title("Project Id"), tui.Title("Name"), tui.Title("Description")}
headers := []string{tui.Title("Project Id"), tui.Title("Name"), tui.Title("Description"), tui.Title("Tag"), tui.Title("Tag Message")}
rows := [][]string{}
for _, project := range orgProjects[orgId] {
desc := project.Description
Expand All @@ -654,12 +654,14 @@ Examples:
tui.Muted(project.ID),
tui.Bold(project.Name),
tui.Text(tui.MaxWidth(desc, 30)),
tui.Muted(project.Tag),
tui.Muted(project.TagMessage),
})
}
tui.Table(headers, rows)
}
} else {
headers := []string{tui.Title("Project Id"), tui.Title("Name"), tui.Title("Description")}
headers := []string{tui.Title("Project Id"), tui.Title("Name"), tui.Title("Description"), tui.Title("Tag"), tui.Title("Tag Message")}
rows := [][]string{}
for _, project := range projects {
desc := project.Description
Expand All @@ -670,6 +672,8 @@ Examples:
tui.Muted(project.ID),
tui.Bold(project.Name),
tui.Text(tui.MaxWidth(desc, 30)),
tui.Muted(project.Tag),
tui.Muted(project.TagMessage),
})
}
tui.Table(headers, rows)
Expand Down
2 changes: 2 additions & 0 deletions internal/project/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ type ProjectListData struct {
Description string `json:"description"`
OrgId string `json:"orgId"`
OrgName string `json:"orgName"`
Tag string `json:"tag"`
TagMessage string `json:"tagMessage"`
}

func ListProjects(ctx context.Context, logger logger.Logger, baseUrl string, token string) ([]ProjectListData, error) {
Expand Down
Loading