Skip to content

Commit fe2c54e

Browse files
authored
feat: bump sf-plugins-core (#824)
1 parent ad36c45 commit fe2c54e

File tree

4 files changed

+96
-11
lines changed

4 files changed

+96
-11
lines changed

README.md

Lines changed: 87 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,93 @@ sfdx plugins
7070

7171
<!-- commands -->
7272

73-
# Command Topics
73+
- [`sf org list limits`](#sf-org-list-limits)
74+
- [`sf org list sobject record-counts`](#sf-org-list-sobject-record-counts)
7475

75-
- [`sf org`](docs/org.md)
76+
## `sf org list limits`
77+
78+
Display information about limits in your org.
79+
80+
```
81+
USAGE
82+
$ sf org list limits -o <value> [--json] [--flags-dir <value>] [--api-version <value>]
83+
84+
FLAGS
85+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
86+
configuration variable is already set.
87+
--api-version=<value> Override the api version used for api requests made by this command
88+
89+
GLOBAL FLAGS
90+
--flags-dir=<value> Import flag values from a directory.
91+
--json Format output as json.
92+
93+
DESCRIPTION
94+
Display information about limits in your org.
95+
96+
For each limit, this command returns the maximum allocation and the remaining allocation based on usage. See this
97+
topic for a description of each limit:
98+
https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_limits.htm.
99+
100+
ALIASES
101+
$ sf force limits api display
102+
$ sf limits api display
103+
104+
EXAMPLES
105+
Display limits in your default org:
106+
107+
$ sf org list limits
108+
109+
Display limits in the org with alias "my-scratch-org":
110+
111+
$ sf org list limits --target-org my-scratch-org
112+
```
113+
114+
_See code: [src/commands/org/list/limits.ts](https://github.com/salesforcecli/plugin-limits/blob/3.1.15/src/commands/org/list/limits.ts)_
115+
116+
## `sf org list sobject record-counts`
117+
118+
Display record counts for the specified standard or custom objects.
119+
120+
```
121+
USAGE
122+
$ sf org list sobject record-counts -o <value> [--json] [--flags-dir <value>] [-s <value>] [--api-version <value>]
123+
124+
FLAGS
125+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
126+
configuration variable is already set.
127+
-s, --sobject=<value>... [default: ] API name of the standard or custom object for which to display record counts.
128+
--api-version=<value> Override the api version used for api requests made by this command
129+
130+
GLOBAL FLAGS
131+
--flags-dir=<value> Import flag values from a directory.
132+
--json Format output as json.
133+
134+
DESCRIPTION
135+
Display record counts for the specified standard or custom objects.
136+
137+
Use this command to get an approximate count of the records in standard or custom objects in your org. These record
138+
counts are the same as the counts listed in the Storage Usage page in the Setup UI. The record counts are approximate
139+
because they're calculated asynchronously and your org's storage usage isn't updated immediately. To display all
140+
available record counts, run the command without the --sobject flag.
141+
142+
ALIASES
143+
$ sf force limits recordcounts display
144+
$ sf limits recordcounts display
145+
146+
EXAMPLES
147+
Display all available record counts in your default org:
148+
149+
$ sf org list sobject record-counts
150+
151+
Display record counts for the Account, Contact, Lead, and Opportunity objects in your default org:
152+
153+
$ sf org list sobject record-counts --sobject Account --sobject Contact --sobject Lead --sobject Opportunity
154+
155+
Display record counts for the Account and Lead objects for the org with alias "my-scratch-org":
156+
157+
$ sf org list sobject record-counts --sobject Account --sobject Lead --target-org my-scratch-org
158+
```
159+
160+
_See code: [src/commands/org/list/sobject/record-counts.ts](https://github.com/salesforcecli/plugin-limits/blob/3.1.15/src/commands/org/list/sobject/record-counts.ts)_
76161

77162
<!-- commandsstop -->

command-snapshot.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
"command": "org:list:limits",
55
"flagAliases": ["apiversion", "targetusername", "u"],
66
"flagChars": ["o"],
7-
"flags": ["api-version", "json", "loglevel", "target-org"],
7+
"flags": ["api-version", "flags-dir", "json", "loglevel", "target-org"],
88
"plugin": "@salesforce/plugin-limits"
99
},
1010
{
1111
"alias": ["force:limits:recordcounts:display", "limits:recordcounts:display"],
1212
"command": "org:list:sobject:record-counts",
1313
"flagAliases": ["apiversion", "sobjecttype", "targetusername", "u"],
1414
"flagChars": ["o", "s"],
15-
"flags": ["api-version", "json", "loglevel", "sobject", "target-org"],
15+
"flags": ["api-version", "flags-dir", "json", "loglevel", "sobject", "target-org"],
1616
"plugin": "@salesforce/plugin-limits"
1717
}
1818
]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"@oclif/core": "^3.19.2",
99
"@salesforce/core": "^6.7.3",
1010
"@salesforce/kit": "^3.0.15",
11-
"@salesforce/sf-plugins-core": "^7.1.15"
11+
"@salesforce/sf-plugins-core": "^8.0.1"
1212
},
1313
"devDependencies": {
1414
"@oclif/plugin-command-snapshot": "^5.1.2",

yarn.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,7 +1436,7 @@
14361436
strip-ansi "6.0.1"
14371437
ts-retry-promise "^0.8.0"
14381438

1439-
"@salesforce/core@^6.4.1", "@salesforce/core@^6.5.3", "@salesforce/core@^6.6.0", "@salesforce/core@^6.7.0", "@salesforce/core@^6.7.1", "@salesforce/core@^6.7.3":
1439+
"@salesforce/core@^6.4.1", "@salesforce/core@^6.5.3", "@salesforce/core@^6.7.0", "@salesforce/core@^6.7.1", "@salesforce/core@^6.7.3":
14401440
version "6.7.3"
14411441
resolved "https://registry.yarnpkg.com/@salesforce/core/-/core-6.7.3.tgz#5d8f30c40ac3cebb898c8e845fe9a067bc729268"
14421442
integrity sha512-uU+PuZZGXxByhvnXLH1V3eY5P1caw401dIZ/QvhzYxoP/alPLk7dpChnZNJYH5Rw3dc/AhSPw+eg0cvUyjhP1Q==
@@ -1542,15 +1542,15 @@
15421542
chalk "^4"
15431543
inquirer "^8.2.5"
15441544

1545-
"@salesforce/sf-plugins-core@^7.1.15":
1546-
version "7.1.15"
1547-
resolved "https://registry.yarnpkg.com/@salesforce/sf-plugins-core/-/sf-plugins-core-7.1.15.tgz#4d6033d56d78cf6046abfce96c119a8a60ee7c07"
1548-
integrity sha512-dQSSIHEpeFIadkWqZE24068m01vy31hVJdGWYvgscTnNrR30jIC5fXRevYvGG0l+8vVEJkCYYnJFQabUjSw3Eg==
1545+
"@salesforce/sf-plugins-core@^8.0.1":
1546+
version "8.0.1"
1547+
resolved "https://registry.yarnpkg.com/@salesforce/sf-plugins-core/-/sf-plugins-core-8.0.1.tgz#f155cddfd7695aab0d8264848b634b2a91cdbf2c"
1548+
integrity sha512-R6SqJ1XqSINSWdZruKtC2SKGnLBh7KbFI7+qS0FYlyPU4IlWoa+AZkGwWvlczuSOumqnlhT95rNKwZTS5rJugA==
15491549
dependencies:
15501550
"@inquirer/confirm" "^2.0.17"
15511551
"@inquirer/password" "^1.1.16"
15521552
"@oclif/core" "^3.23.0"
1553-
"@salesforce/core" "^6.6.0"
1553+
"@salesforce/core" "^6.7.3"
15541554
"@salesforce/kit" "^3.0.15"
15551555
"@salesforce/ts-types" "^2.0.9"
15561556
chalk "^5.3.0"

0 commit comments

Comments
 (0)