Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
a830ef9
devops project commands
ad-shreya May 26, 2026
8c3dbbc
eslint fix
ad-shreya May 27, 2026
5953153
eslint fix
ad-shreya May 27, 2026
6aab096
fix: regenerate json schemas for new commands
ad-shreya Jun 1, 2026
827f907
fix: test failures
ad-shreya Jun 1, 2026
3910d11
fix: unit tests
ad-shreya Jun 1, 2026
dce3ad1
chore: untrack settings.json
ad-shreya Jun 1, 2026
c792d1b
Apply text suggestions from code review
ad-shreya Jun 2, 2026
3c42f80
Apply text suggestions from code review
ad-shreya Jun 3, 2026
fe691ed
fix: pr review
ad-shreya Jun 3, 2026
93bd6d1
fix: unit test
ad-shreya Jun 3, 2026
c7d8cd3
chore: review fixes
ad-shreya Jun 8, 2026
2343a11
fix: test fixes
ad-shreya Jun 8, 2026
f263971
chore: migrate to ESM
ad-shreya Jun 15, 2026
bf63989
fix: tests
ad-shreya Jun 15, 2026
f6d1aee
fix: tests
ad-shreya Jun 15, 2026
c4bd6e0
fix: test failure
ad-shreya Jun 16, 2026
e440a6b
fix: test failure
ad-shreya Jun 16, 2026
0b93b69
fix: test failure
ad-shreya Jun 16, 2026
8bd75f3
Merge pull request #507 from salesforcecli/ashreya/esm
soridalac Jun 16, 2026
8dc021e
chore: update workitem status
ad-shreya Jun 16, 2026
412394b
chore: create pull request command
ad-shreya Jun 18, 2026
ec0bb9b
fix: tests
ad-shreya Jun 18, 2026
bdce833
chore: create new project command
ad-shreya Jun 22, 2026
aab7971
chore: attach-project command
ad-shreya Jun 22, 2026
5964639
fix: review fix
ad-shreya Jun 23, 2026
a9bd61e
Merge pull request #508 from salesforcecli/ashreya/commands-2
ad-shreya Jun 24, 2026
a148245
chore: create pipeline command
ad-shreya Jun 24, 2026
0fd5982
chore: add stage command
ad-shreya Jun 24, 2026
2e556e0
chore: activate pipeline
ad-shreya Jun 24, 2026
ea07b40
fix: review refactor
ad-shreya Jun 25, 2026
0b65100
Merge pull request #509 from salesforcecli/ashreya/commands-3
soridalac Jun 25, 2026
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
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2024, Salesforce.com, Inc.
Copyright (c) 2026, Salesforce.com, Inc.
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Expand Down
64 changes: 44 additions & 20 deletions command-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,57 @@
[
{
"command": "project:deploy:pipeline:quick",
"plugin": "@salesforce/plugin-devops-center",
"flags": ["async", "concise", "devops-center-username", "job-id", "json", "use-most-recent", "verbose", "wait"],
"alias": [],
"command": "devops:project:list",
"flagAliases": [],
"flagChars": ["o"],
"flags": ["json", "target-org"],
"plugin": "@salesforce/plugin-devops-center"
},
{
"alias": [],
"command": "devops:work-item:create",
"flagAliases": [],
"flagChars": ["d", "o", "p", "s"],
"flags": ["description", "json", "project-id", "subject", "target-org"],
"plugin": "@salesforce/plugin-devops-center"
},
{
"alias": [],
"command": "devops:work-item:list",
"flagAliases": [],
"flagChars": ["o", "p"],
"flags": ["json", "project-id", "target-org"],
"plugin": "@salesforce/plugin-devops-center"
},
{
"alias": [],
"command": "project:deploy:pipeline:quick",
"flagAliases": [],
"flagChars": ["c", "i", "r", "w"],
"flagAliases": []
"flags": ["async", "concise", "devops-center-username", "job-id", "json", "use-most-recent", "verbose", "wait"],
"plugin": "@salesforce/plugin-devops-center"
},
{
"command": "project:deploy:pipeline:report",
"plugin": "@salesforce/plugin-devops-center",
"flags": ["devops-center-username", "job-id", "json", "use-most-recent"],
"alias": [],
"command": "project:deploy:pipeline:report",
"flagAliases": [],
"flagChars": ["c", "i", "r"],
"flagAliases": []
"flags": ["devops-center-username", "job-id", "json", "use-most-recent"],
"plugin": "@salesforce/plugin-devops-center"
},
{
"command": "project:deploy:pipeline:resume",
"plugin": "@salesforce/plugin-devops-center",
"flags": ["concise", "devops-center-username", "job-id", "json", "use-most-recent", "verbose", "wait"],
"alias": [],
"command": "project:deploy:pipeline:resume",
"flagAliases": [],
"flagChars": ["c", "i", "r", "w"],
"flagAliases": []
"flags": ["concise", "devops-center-username", "job-id", "json", "use-most-recent", "verbose", "wait"],
"plugin": "@salesforce/plugin-devops-center"
},
{
"alias": [],
"command": "project:deploy:pipeline:start",
"plugin": "@salesforce/plugin-devops-center",
"flagAliases": [],
"flagChars": ["a", "b", "c", "l", "p", "t", "v", "w"],
"flags": [
"async",
"branch-name",
Expand All @@ -40,13 +66,13 @@
"verbose",
"wait"
],
"alias": [],
"flagChars": ["a", "b", "c", "l", "p", "t", "v", "w"],
"flagAliases": []
"plugin": "@salesforce/plugin-devops-center"
},
{
"alias": [],
"command": "project:deploy:pipeline:validate",
"plugin": "@salesforce/plugin-devops-center",
"flagAliases": [],
"flagChars": ["a", "b", "c", "l", "p", "t", "v", "w"],
"flags": [
"async",
"branch-name",
Expand All @@ -61,8 +87,6 @@
"verbose",
"wait"
],
"alias": [],
"flagChars": ["a", "b", "c", "l", "p", "t", "v", "w"],
"flagAliases": []
"plugin": "@salesforce/plugin-devops-center"
}
]
21 changes: 21 additions & 0 deletions messages/devops.project.list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# summary

List all DevOps Center projects in a Salesforce org.

# description

This command queries the DevopsProject standard object and returns the project Id, Name, and Description for each project found.

# flags.target-org.summary

Username or alias of the DevOps Center org.

# examples

- List all DevOps Center projects in an org with alias "my-devops-org":

<%= config.bin %> <%= command.id %> --target-org my-devops-org

- List projects using an org's username:

<%= config.bin %> <%= command.id %> --target-org devops-center@example.com
33 changes: 33 additions & 0 deletions messages/devops.work-item.create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# summary

Create a new work item in a DevOps Center project.

# description

The command creates the work item using the Connect API. Requires a project ID and a subject for the new work item; run the `devops project list` command to get the IDs for all existing projects.

# flags.target-org.summary

Username or alias of the DevOps Center org.

# flags.project-id.summary

ID of the DevOps Center project to create the work item in.

# flags.subject.summary

Subject (title) of the new work item.

# flags.description.summary

Description of the new work item.
Comment thread
jshackell-sfdc marked this conversation as resolved.
Outdated
Comment thread
ad-shreya marked this conversation as resolved.
Outdated

# examples

- Create a work item with a subject.
Comment thread
ad-shreya marked this conversation as resolved.
Outdated

<%= config.bin %> <%= command.id %> --target-org my-devops-org --project-id 0Hn000000000001 --subject "Fix login bug"

- Create a work item with a subject and description:

<%= config.bin %> <%= command.id %> --target-org my-devops-org --project-id 0Hn000000000001 --subject "Add dark mode" --description "Implement dark mode toggle in settings page"
25 changes: 25 additions & 0 deletions messages/devops.work-item.list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# summary

List all work items for a DevOps Center project.

# description

Each work item displays the branch, environment, and repository details needed for checkout and promotion. Requires a project ID; run the `devops project list` command to get the IDs for all existing projects.

# flags.target-org.summary

Username or alias of the DevOps Center org.

# flags.project-id.summary

ID of the DevOps Center project to list work items for.

# examples

- List work items for a specific project in the DevOps org with alias "my-devops-org":

<%= config.bin %> <%= command.id %> --target-org my-devops-org --project-id 0Hn000000000001

- List work items using JSON output:

<%= config.bin %> <%= command.id %> --target-org my-devops-org --project-id 0Hn000000000001 --json
11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,17 @@
}
}
}
},
"devops": {
"description": "Commands for DevOps and Application Lifecycle Management.",
"subtopics": {
"project": {
"description": "Commands for managing DevOps Center projects."
},
"work-item": {
"description": "Commands for managing DevOps Center work items."
}
}
}
}
},
Expand Down
35 changes: 35 additions & 0 deletions schemas/devops-project-list.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/DevopsProjectListResult",
"definitions": {
"DevopsProjectListResult": {
"type": "object",
"properties": {
"projects": {
"type": "array",
"items": {
"$ref": "#/definitions/DevopsProject"
}
}
},
"required": ["projects"],
"additionalProperties": false
},
"DevopsProject": {
"type": "object",
"properties": {
"Id": {
"type": "string"
},
"Name": {
"type": "string"
},
"Description": {
"type": ["string", "null"]
}
},
"required": ["Id", "Name", "Description"],
"additionalProperties": false
}
}
}
28 changes: 28 additions & 0 deletions schemas/devops-work__item-create.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/CreateWorkItemResult",
"definitions": {
"CreateWorkItemResult": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"workItemId": {
"type": "string"
},
"workItemName": {
"type": "string"
},
"subject": {
"type": "string"
},
"error": {
"type": "string"
}
},
"required": ["success"],
"additionalProperties": false
}
}
}
75 changes: 75 additions & 0 deletions schemas/devops-work__item-list.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/DevopsWorkItemListResult",
"definitions": {
"DevopsWorkItemListResult": {
"type": "object",
"properties": {
"workItems": {
"type": "array",
"items": {
"$ref": "#/definitions/WorkItem"
}
}
},
"required": ["workItems"],
"additionalProperties": false
},
"WorkItem": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"subject": {
"type": "string"
},
"description": {
"type": "string"
},
"status": {
"type": "string"
},
"owner": {
"type": "string"
},
"DevopsProjectId": {
"type": "string"
},
"PipelineId": {
"type": "string"
},
"PipelineStageId": {
"type": "string"
},
"SourceCodeRepository": {
"type": "object",
"properties": {
"repoUrl": {
"type": "string"
},
"repoType": {
"type": "string"
}
},
"required": ["repoUrl", "repoType"],
"additionalProperties": false
},
"WorkItemBranch": {
"type": "string"
},
"TargetStageId": {
"type": "string"
},
"TargetBranch": {
"type": "string"
}
},
"required": ["id", "name", "status", "owner", "DevopsProjectId"],
"additionalProperties": false
}
}
}
4 changes: 2 additions & 2 deletions schemas/project-deploy-pipeline-report.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"definitions": {
"PromotePipelineResult": {
"type": "object",
"additionalProperties": false,
"properties": {
"jobId": {
"type": "string"
Expand All @@ -18,8 +19,7 @@
"type": "string"
}
},
"required": ["jobId"],
"additionalProperties": false
"required": ["jobId"]
}
}
}
Loading
Loading