Skip to content
Merged
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 internal/assist/prompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ dhq beta enroll [--protocol managed_vps|static_hosting] (enroll the account i

Account Resources:
dhq agents list|create|update|delete|revoke
dhq teams list|show|create|update|delete
dhq folders list|create|update|delete
dhq global-servers list|show|create|update|delete|copy-to-project
dhq invoices list (billing history; billing-manager key required)
Expand Down
23 changes: 23 additions & 0 deletions internal/commands/agent_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,29 @@ var commandMetadataTable = map[string]AgentMetadata{
Idempotent: true, SupportsJSON: true, SafeForAutomation: true,
ResourceTypes: []string{"ssh_key"},
},

// Teams (account-level permission groups)
"dhq teams list": {
Idempotent: true, SupportsJSON: true, SafeForAutomation: true,
ResourceTypes: []string{"team"},
},
"dhq teams show": {
Idempotent: true, SupportsJSON: true, SafeForAutomation: true,
ResourceTypes: []string{"team"},
},
"dhq teams create": {
Idempotent: false, SupportsJSON: true, SafeForAutomation: true,
ResourceTypes: []string{"team"},
},
"dhq teams update": {
Idempotent: true, SupportsJSON: true, SafeForAutomation: true,
ResourceTypes: []string{"team"},
},
"dhq teams delete": {
Destructive: true, RequiresConfirmation: true,
Idempotent: false, SupportsJSON: true, SafeForAutomation: true,
ResourceTypes: []string{"team"},
},
"dhq ssh-keys download": {
// Emits raw private key material. Idempotent, but sensitive enough that
// an agent should confirm before running and not treat it as safe to run
Expand Down
1 change: 1 addition & 0 deletions internal/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ Support: support@deployhq.com`,
newExcludedFilesCmd(),
newIntegrationsCmd(),
newAgentsCmd(),
newTeamsCmd(),
newSSHKeysCmd(),
newUsersCmd(),
newAccountCmd(),
Expand Down
Loading
Loading