Skip to content

Commit

Permalink
Merge pull request #1932 from salesforcecli/release/2.62.5
Browse files Browse the repository at this point in the history
Release PR for 2.62.5 as nightly
  • Loading branch information
iowillhoit authored Oct 8, 2024
2 parents 8827c4f + 1444e84 commit 3b87f49
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 84 deletions.
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $ npm install -g @salesforce/cli
$ sf COMMAND
running command...
$ sf (--version|-v)
@salesforce/cli/2.62.4 linux-x64 node-v20.17.0
@salesforce/cli/2.62.5 linux-x64 node-v20.17.0
$ sf --help [COMMAND]
USAGE
$ sf COMMAND
Expand Down Expand Up @@ -903,16 +903,16 @@ EXAMPLES
$ sf api request graphql --body example.txt --stream-to-file output.txt --include
```

_See code: [@salesforce/plugin-api](https://github.com/salesforcecli/plugin-api/blob/1.3.0/src/commands/api/request/graphql.ts)_
_See code: [@salesforce/plugin-api](https://github.com/salesforcecli/plugin-api/blob/1.3.1/src/commands/api/request/graphql.ts)_

## `sf api request rest [URL]`

Make an authenticated HTTP request using the Salesforce REST API.

```
USAGE
$ sf api request rest [URL] -o <value> [--flags-dir <value>] [--api-version <value>] [-i | -S Example: report.xlsx]
[-X GET|POST|PUT|PATCH|HEAD|DELETE|OPTIONS|TRACE] [-H key:value...] [-f file] [-b file]
$ sf api request rest [URL] -o <value> [--flags-dir <value>] [-i | -S Example: report.xlsx] [-X
GET|POST|PUT|PATCH|HEAD|DELETE|OPTIONS|TRACE] [-H key:value...] [-f file | -b file]
ARGUMENTS
URL Salesforce API endpoint
Expand All @@ -923,13 +923,13 @@ FLAGS
-X, --method=<option> HTTP method for the request.
<options: GET|POST|PUT|PATCH|HEAD|DELETE|OPTIONS|TRACE>
-b, --body=file File or content for the body of the HTTP request. Specify "-" to read from
standard input or "" for an empty body.
standard input or "" for an empty body. If passing a file, prefix the
filename with '@'.
-f, --file=file JSON file that contains values for the request header, body, method, and
URL.
-i, --include Include the HTTP response status and headers in the output.
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the
`target-org` configuration variable is already set.
--api-version=<value> Override the api version used for api requests made by this command
GLOBAL FLAGS
--flags-dir=<value> Import flag values from a directory.
Expand All @@ -946,30 +946,30 @@ DESCRIPTION
EXAMPLES
List information about limits in the org with alias "my-org":
$ sf api request rest 'limits' --target-org my-org
$ sf api request rest 'services/data/v56.0/limits' --target-org my-org
List all endpoints in your default org; write the output to a file called "output.txt" and include the HTTP response
status and headers:
$ sf api request rest '/' --stream-to-file output.txt --include
$ sf api request rest '/services/data/v56.0/' --stream-to-file output.txt --include
Get the response in XML format by specifying the "Accept" HTTP header:
$ sf api request rest 'limits' --header 'Accept: application/xml'
$ sf api request rest '/services/data/v56.0/limits' --header 'Accept: application/xml'
Create an account record using the POST method; specify the request details directly in the "--body" flag:
$ sf api request rest sobjects/account --body "{\"Name\" : \"Account from REST API\",\"ShippingCity\" : \
\"Boise\"}" --method POST
$ sf api request rest /services/data/v56.0/sobjects/account --body "{\"Name\" : \"Account from REST \
API\",\"ShippingCity\" : \"Boise\"}" --method POST
Create an account record using the information in a file called "info.json":
Create an account record using the information in a file called "info.json" (note the @ prefixing the file name):
$ sf api request rest 'sobjects/account' --body info.json --method POST
$ sf api request rest '/services/data/v56.0/sobjects/account' --body @info.json --method POST
Update an account record using the PATCH method:
$ sf api request rest 'sobjects/account/<Account ID>' --body "{\"BillingCity\": \"San Francisco\"}" --method \
PATCH
$ sf api request rest '/services/data/v56.0/sobjects/account/<Account ID>' --body "{\"BillingCity\": \"San \
Francisco\"}" --method PATCH
Store the values for the request header, body, and so on, in a file, which you then specify with the --file flag;
see the description of --file for more information:
Expand Down Expand Up @@ -1012,7 +1012,7 @@ FLAG DESCRIPTIONS
https://github.com/salesforcecli/plugin-api/tree/main/test/test-files/data-project.
```

_See code: [@salesforce/plugin-api](https://github.com/salesforcecli/plugin-api/blob/1.3.0/src/commands/api/request/rest.ts)_
_See code: [@salesforce/plugin-api](https://github.com/salesforcecli/plugin-api/blob/1.3.1/src/commands/api/request/rest.ts)_

## `sf autocomplete [SHELL]`

Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@salesforce/cli",
"description": "The Salesforce CLI",
"version": "2.62.4",
"version": "2.62.5",
"author": "Salesforce",
"bin": {
"sf": "./bin/run.js",
Expand Down Expand Up @@ -142,19 +142,19 @@
"@inquirer/select": "^2.3.5",
"@oclif/core": "4.0.27",
"@oclif/plugin-autocomplete": "3.2.5",
"@oclif/plugin-commands": "4.1.1",
"@oclif/plugin-commands": "4.1.2",
"@oclif/plugin-help": "6.2.14",
"@oclif/plugin-not-found": "3.2.22",
"@oclif/plugin-plugins": "5.4.14",
"@oclif/plugin-search": "1.2.11",
"@oclif/plugin-update": "4.6.1",
"@oclif/plugin-update": "4.6.2",
"@oclif/plugin-version": "2.2.14",
"@oclif/plugin-warn-if-update-available": "3.1.18",
"@oclif/plugin-which": "3.2.15",
"@salesforce/core": "^8.2.3",
"@salesforce/kit": "^3.1.6",
"@salesforce/plugin-apex": "3.5.1",
"@salesforce/plugin-api": "1.3.0",
"@salesforce/plugin-api": "1.3.1",
"@salesforce/plugin-auth": "3.6.65",
"@salesforce/plugin-data": "3.6.9",
"@salesforce/plugin-deploy-retrieve": "3.12.17",
Expand Down
88 changes: 24 additions & 64 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -604,22 +604,14 @@
"@smithy/types" "^3.5.0"
tslib "^2.6.2"

"@aws-sdk/[email protected]":
"@aws-sdk/[email protected]", "@aws-sdk/types@^3.222.0":
version "3.664.0"
resolved "https://registry.yarnpkg.com/@aws-sdk/types/-/types-3.664.0.tgz#e6de1c0a2cdfe4f1e43271223dc0b55e613ced58"
integrity sha512-+GtXktvVgpreM2b+NJL9OqZGsOzHwlCUrO8jgQUvH/yA6Kd8QO2YFhQCp0C9sSzTteZJVqGBu8E0CQurxJHPbw==
dependencies:
"@smithy/types" "^3.5.0"
tslib "^2.6.2"

"@aws-sdk/types@^3.222.0":
version "3.649.0"
resolved "https://registry.yarnpkg.com/@aws-sdk/types/-/types-3.649.0.tgz#a6828e6338dc755e0c30b5f77321e63425a88aed"
integrity sha512-PuPw8RysbhJNlaD2d/PzOTf8sbf4Dsn2b7hwyGh7YVG3S75yTpxSAZxrnhKsz9fStgqFmnw/jUfV/G+uQAeTVw==
dependencies:
"@smithy/types" "^3.4.0"
tslib "^2.6.2"

"@aws-sdk/[email protected]":
version "3.568.0"
resolved "https://registry.yarnpkg.com/@aws-sdk/util-arn-parser/-/util-arn-parser-3.568.0.tgz#6a19a8c6bbaa520b6be1c278b2b8c17875b91527"
Expand Down Expand Up @@ -1613,13 +1605,13 @@
semver "^7.6.0"
ts-json-schema-generator "^1.5.1"

"@oclif/[email protected].1":
version "4.1.1"
resolved "https://registry.yarnpkg.com/@oclif/plugin-commands/-/plugin-commands-4.1.1.tgz#bcc9852a5da271b6f8fafbf5c6293dc7efbf43d9"
integrity sha512-IbM8IQew6v873pIhNlKxVLU2TjeXgI8qQng2EjAu/L6qXOvtM5KUH2Q4xU3CDBm75TZL51EE6tFuFXM6Zxy7ig==
"@oclif/[email protected].2":
version "4.1.2"
resolved "https://registry.yarnpkg.com/@oclif/plugin-commands/-/plugin-commands-4.1.2.tgz#ca5f57847bf15e3de57b74e3bcb254ed80b4d6e6"
integrity sha512-PC0aieyqbWTShqr3jkouiGKTO2ReXfGZTEux+Y19cPvbZCBnJ5hld0rGG/wWOusYo/5AumY3Mo5Yx9I2N2Fy8Q==
dependencies:
"@oclif/core" "^4"
"@oclif/table" "^0.1.13"
"@oclif/table" "^0.1.16"
lodash "^4.17.21"
object-treeify "^4.0.1"

Expand Down Expand Up @@ -1666,14 +1658,14 @@
ansi-escapes "^7.0.0"
inquirer-autocomplete-standalone "^0.8.1"

"@oclif/[email protected].1":
version "4.6.1"
resolved "https://registry.yarnpkg.com/@oclif/plugin-update/-/plugin-update-4.6.1.tgz#5ce99a422356e239c849f8fd41df69638312714f"
integrity sha512-r1P+wQhw1+wLgQlc8scad5npYFFW7V5qd6wbrFSZr14AlnlATPdOGtDvouaNnNmoBIPK0HDvl9/1aUKWyFFjyw==
"@oclif/[email protected].2":
version "4.6.2"
resolved "https://registry.yarnpkg.com/@oclif/plugin-update/-/plugin-update-4.6.2.tgz#f7a63625927194493d304c83c4a700d9f0479f52"
integrity sha512-o/xGzTcznhDgiD7uETxo/Gg7lCWjw0Ktu936ItsFJdqwaONP8Cr9nZGg0t0D/lZptBx4xikUStHKYhiD/xsL2w==
dependencies:
"@inquirer/select" "^2.5.0"
"@oclif/core" "^4"
"@oclif/table" "^0.1.13"
"@oclif/table" "^0.1.15"
ansis "^3.3.2"
debug "^4.3.7"
filesize "^6.1.0"
Expand Down Expand Up @@ -1710,13 +1702,13 @@
"@oclif/core" "^4"
ansis "^3.3.1"

"@oclif/table@^0.1.13":
version "0.1.13"
resolved "https://registry.yarnpkg.com/@oclif/table/-/table-0.1.13.tgz#cbc50cc6934e0643682d925f59750b5305035668"
integrity sha512-7LlwVLLTVuJ0D8Q11utQWLqK6NpZwFqcei2IDrGuhiR+8o2EOocVOmaqXhOFV0YyCoVEIyJG9s4vGBff+Bx4nQ==
"@oclif/table@^0.1.15", "@oclif/table@^0.1.16":
version "0.1.16"
resolved "https://registry.yarnpkg.com/@oclif/table/-/table-0.1.16.tgz#e12c532278bc4afed8b331e2a83087dea8cf30cd"
integrity sha512-X+kJyUs1ViqLHhOUzi6NF1r3PRVMSp4BEAm/nq0E+KaRzQddAK4QVXhpugUkb2H7Ea+nuVTfG05ZZqXpg9uktg==
dependencies:
"@oclif/core" "^4"
"@types/react" "^18.3.10"
"@types/react" "^18.3.11"
change-case "^5.4.4"
cli-truncate "^4.0.0"
ink "^5.0.1"
Expand Down Expand Up @@ -2018,10 +2010,10 @@
"@salesforce/sf-plugins-core" "^11.3.7"
ansis "^3.3.1"

"@salesforce/[email protected].0":
version "1.3.0"
resolved "https://registry.yarnpkg.com/@salesforce/plugin-api/-/plugin-api-1.3.0.tgz#491f526afd3f2330eabfe4ea65dfb71de0d5626c"
integrity sha512-DtCgRjlTUbxQAuCSo4g4xhbOotQcWY3dCOz3es7ihTtpevGj09vczs5acE7u8If25+XCnIdstOO1IyNoJIAzXg==
"@salesforce/[email protected].1":
version "1.3.1"
resolved "https://registry.yarnpkg.com/@salesforce/plugin-api/-/plugin-api-1.3.1.tgz#64bf8420e76e48ed2e2d05d1b5fd25a0b239cd46"
integrity sha512-1QCtXPjvL3ZpyYGMdapPFyYOmD+s5ZmfmYKKJZafLjRA1ta6nMhwe29W+sVUd5BYu/WMYMkNFeb/hFO7iB+cew==
dependencies:
"@oclif/core" "^4"
"@salesforce/core" "^8.4.0"
Expand Down Expand Up @@ -2860,13 +2852,6 @@
"@smithy/util-stream" "^3.1.9"
tslib "^2.6.2"

"@smithy/types@^3.4.0":
version "3.4.2"
resolved "https://registry.yarnpkg.com/@smithy/types/-/types-3.4.2.tgz#aa2d087922d57205dbad68df8a45c848699c551e"
integrity sha512-tHiFcfcVedVBHpmHUEUHOCCih8iZbIAYn9NvPsNzaPm/237I3imdDdZoOC8c87H5HBAVEa06tTgb+OcSWV9g5w==
dependencies:
tslib "^2.6.2"

"@smithy/types@^3.5.0":
version "3.5.0"
resolved "https://registry.yarnpkg.com/@smithy/types/-/types-3.5.0.tgz#9589e154c50d9c5d00feb7d818112ef8fc285d6e"
Expand Down Expand Up @@ -3213,7 +3198,7 @@
resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.13.tgz#2af91918ee12d9d32914feb13f5326658461b451"
integrity sha512-hCZTSvwbzWGvhqxp/RqVqwU999pBf2vp7hzIjiYOsl8wqOmUxkQ6ddw1cV3l8811+kdUFus/q4d1Y3E3SyEifA==

"@types/react@^18.3.10":
"@types/react@^18.3.11":
version "18.3.11"
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.3.11.tgz#9d530601ff843ee0d7030d4227ea4360236bd537"
integrity sha512-r6QZ069rFTjrEYgFdOck1gK7FLVsgJE7tTz0pQBczlBNUhBNk0MQH4UbnFSwjpQLMkLzgqvBBa+qGpLje16eTQ==
Expand Down Expand Up @@ -9935,16 +9920,7 @@ [email protected]:
dependencies:
escodegen "^1.8.1"

"string-width-cjs@npm:string-width@^4.2.0":
version "4.2.3"
resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz"
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
dependencies:
emoji-regex "^8.0.0"
is-fullwidth-code-point "^3.0.0"
strip-ansi "^6.0.1"

string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
version "4.2.3"
resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz"
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
Expand Down Expand Up @@ -10018,14 +9994,7 @@ stringify-package@^1.0.1:
resolved "https://registry.npmjs.org/stringify-package/-/stringify-package-1.0.1.tgz"
integrity sha512-sa4DUQsYciMP1xhKWGuFM04fB0LG/9DlluZoSVywUMRNvzid6XucHK0/90xGxRoHrAaROrcHK1aPKaijCtSrhg==

"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
version "6.0.1"
resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz"
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
dependencies:
ansi-regex "^5.0.1"

[email protected], strip-ansi@^6, strip-ansi@^6.0.0, strip-ansi@^6.0.1:
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", [email protected], strip-ansi@^6, strip-ansi@^6.0.0, strip-ansi@^6.0.1:
version "6.0.1"
resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz"
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
Expand Down Expand Up @@ -10781,7 +10750,7 @@ [email protected]:
resolved "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz"
integrity sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw==

"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
version "7.0.0"
resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz"
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
Expand All @@ -10799,15 +10768,6 @@ wrap-ansi@^6.2.0:
string-width "^4.1.0"
strip-ansi "^6.0.0"

wrap-ansi@^7.0.0:
version "7.0.0"
resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz"
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
dependencies:
ansi-styles "^4.0.0"
string-width "^4.1.0"
strip-ansi "^6.0.0"

wrap-ansi@^8.1.0:
version "8.1.0"
resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz"
Expand Down

0 comments on commit 3b87f49

Please sign in to comment.