File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ## [ 2.0.8] ( https://github.com/salesforcecli/plugin-api/compare/2.0.7...2.0.8 ) (2026-08-10)
2+
3+ ### Bug Fixes
4+
5+ - ga 'api request rest' command @W-23493730 @ ([ #194 ] ( https://github.com/salesforcecli/plugin-api/issues/194 ) ) ([ 7d91085] ( https://github.com/salesforcecli/plugin-api/commit/7d910856f7184557a888c9b76fb1453d309c0997 ) )
6+
17## [ 2.0.7] ( https://github.com/salesforcecli/plugin-api/compare/2.0.6...2.0.7 ) (2026-08-10)
28
39### Bug Fixes
Original file line number Diff line number Diff line change @@ -113,15 +113,15 @@ EXAMPLES
113113 $ sf api request graphql --body example.txt --stream-to-file output.txt --include
114114```
115115
116- _ See code: [ src/commands/api/request/graphql.ts] ( https://github.com/salesforcecli/plugin-api/blob/2.0.7 /src/commands/api/request/graphql.ts ) _
116+ _ See code: [ src/commands/api/request/graphql.ts] ( https://github.com/salesforcecli/plugin-api/blob/2.0.8 /src/commands/api/request/graphql.ts ) _
117117
118118## ` sf api request rest [URL] `
119119
120120Make an authenticated HTTP request using the Salesforce REST API.
121121
122122```
123123USAGE
124- $ sf api request rest [URL] -o <value> [--flags-dir <value>] [-i | -S Example: report.xlsx] [-X
124+ $ sf api request rest [URL] -o <value> [--json] [-- flags-dir <value>] [-i | -S Example: report.xlsx] [-X
125125 GET|POST|PUT|PATCH|HEAD|DELETE|OPTIONS|TRACE] [-H key:value...] [-f file | -b file]
126126
127127ARGUMENTS
@@ -143,6 +143,7 @@ FLAGS
143143
144144GLOBAL FLAGS
145145 --flags-dir=<value> Import flag values from a directory.
146+ --json Format output as json.
146147
147148DESCRIPTION
148149 Make an authenticated HTTP request using the Salesforce REST API.
@@ -222,7 +223,7 @@ FLAG DESCRIPTIONS
222223 https://github.com/salesforcecli/plugin-api/tree/main/test/test-files/data-project.
223224```
224225
225- _ See code: [ src/commands/api/request/rest.ts] ( https://github.com/salesforcecli/plugin-api/blob/2.0.7 /src/commands/api/request/rest.ts ) _
226+ _ See code: [ src/commands/api/request/rest.ts] ( https://github.com/salesforcecli/plugin-api/blob/2.0.8 /src/commands/api/request/rest.ts ) _
226227
227228<!-- commandsstop -->
228229
Original file line number Diff line number Diff line change 11{
22 "name" : " @salesforce/plugin-api" ,
33 "description" : " A plugin to call API endpoints via CLI commands" ,
4- "version" : " 2.0.7 " ,
4+ "version" : " 2.0.8 " ,
55 "author" : " Salesforce" ,
66 "bugs" : " https://github.com/forcedotcom/cli/issues" ,
77 "enableO11y" : true ,
You can’t perform that action at this time.
0 commit comments