diff --git a/CHANGELOG.md b/CHANGELOG.md index 6120bd73..27d58552 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [2.1.0](https://github.com/salesforcecli/plugin-data/compare/v2.0.4...v2.1.0) (2022-07-26) + +### Features + +- add a soqlqueryfile parameter to allow longer queries ([#327](https://github.com/salesforcecli/plugin-data/issues/327)) ([966096d](https://github.com/salesforcecli/plugin-data/commit/966096ddd8338c1a92c02d706cbad46ba5e122ad)) + ### [2.0.4](https://github.com/salesforcecli/plugin-data/compare/v2.0.3...v2.0.4) (2022-06-16) ### Bug Fixes diff --git a/README.md b/README.md index be66ce75..3aedfc05 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ sfdx plugins - [`sfdx force:data:record:delete -s [-i | -w ] [-t] [--perflog --json] [-u ] [--apiversion ] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcedatarecorddelete--s-string--i-id---w-string--t---perflog---json--u-string---apiversion-string---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) - [`sfdx force:data:record:get -s [-i | -w ] [-t] [--perflog --json] [-u ] [--apiversion ] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcedatarecordget--s-string--i-id---w-string--t---perflog---json--u-string---apiversion-string---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) - [`sfdx force:data:record:update -s -v [-i | -w ] [-t] [--perflog --json] [-u ] [--apiversion ] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcedatarecordupdate--s-string--v-string--i-id---w-string--t---perflog---json--u-string---apiversion-string---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfdx force:data:soql:query -q [-t] [-r human|csv|json] [--perflog --json] [-u ] [--apiversion ] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcedatasoqlquery--q-string--t--r-humancsvjson---perflog---json--u-string---apiversion-string---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) +- [`sfdx force:data:soql:query [-q | -f ] [-t] [-r human|csv|json] [--perflog --json] [-u ] [--apiversion ] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcedatasoqlquery--q-string---f-filepath--t--r-humancsvjson---perflog---json--u-string---apiversion-string---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) - [`sfdx force:data:tree:export -q [-p] [-x ] [-d ] [-u ] [--apiversion ] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcedatatreeexport--q-string--p--x-string--d-directory--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) - [`sfdx force:data:tree:import [-f | -p ] [--confighelp] [-u ] [--apiversion ] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcedatatreeimport--f-array---p-filepath---confighelp--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) @@ -128,7 +128,7 @@ EXAMPLES $ sfdx force:data:bulk:delete -s MyObject__c -f ./path/to/file.csv ``` -_See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/v2.0.3/src/commands/force/data/bulk/delete.ts)_ +_See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/v2.0.4/src/commands/force/data/bulk/delete.ts)_ ## `sfdx force:data:bulk:status -i [-b ] [-u ] [--apiversion ] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]` @@ -165,7 +165,7 @@ EXAMPLES $ sfdx force:data:bulk:status -i 750xx000000005sAAA -b 751xx000000005nAAA ``` -_See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/v2.0.3/src/commands/force/data/bulk/status.ts)_ +_See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/v2.0.4/src/commands/force/data/bulk/status.ts)_ ## `sfdx force:data:bulk:upsert -i -f -s [-w ] [-r] [-u ] [--apiversion ] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]` @@ -214,7 +214,7 @@ EXAMPLES $ sfdx force:data:bulk:upsert -s MyObject__c -f ./path/to/file.csv -i Id -w 2 ``` -_See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/v2.0.3/src/commands/force/data/bulk/upsert.ts)_ +_See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/v2.0.4/src/commands/force/data/bulk/upsert.ts)_ ## `sfdx force:data:record:create -s -v [-t] [--perflog --json] [-u ] [--apiversion ] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]` @@ -263,7 +263,7 @@ EXAMPLES $ sfdx force:data:record:create -s Account -v "Name=Acme" --perflog --json ``` -_See code: [src/commands/force/data/record/create.ts](https://github.com/salesforcecli/plugin-data/blob/v2.0.3/src/commands/force/data/record/create.ts)_ +_See code: [src/commands/force/data/record/create.ts](https://github.com/salesforcecli/plugin-data/blob/v2.0.4/src/commands/force/data/record/create.ts)_ ## `sfdx force:data:record:delete -s [-i | -w ] [-t] [--perflog --json] [-u ] [--apiversion ] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]` @@ -315,7 +315,7 @@ EXAMPLES $ sfdx force:data:record:delete -t -s TraceFlag -i 7tf170000009cU6AAI --perflog --json ``` -_See code: [src/commands/force/data/record/delete.ts](https://github.com/salesforcecli/plugin-data/blob/v2.0.3/src/commands/force/data/record/delete.ts)_ +_See code: [src/commands/force/data/record/delete.ts](https://github.com/salesforcecli/plugin-data/blob/v2.0.4/src/commands/force/data/record/delete.ts)_ ## `sfdx force:data:record:get -s [-i | -w ] [-t] [--perflog --json] [-u ] [--apiversion ] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]` @@ -368,7 +368,7 @@ EXAMPLES $ sfdx force:data:record:get -t -s TraceFlag -i 7tf170000009cUBAAY --perflog --json ``` -_See code: [src/commands/force/data/record/get.ts](https://github.com/salesforcecli/plugin-data/blob/v2.0.3/src/commands/force/data/record/get.ts)_ +_See code: [src/commands/force/data/record/get.ts](https://github.com/salesforcecli/plugin-data/blob/v2.0.4/src/commands/force/data/record/get.ts)_ ## `sfdx force:data:record:update -s -v [-i | -w ] [-t] [--perflog --json] [-u ] [--apiversion ] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]` @@ -420,19 +420,20 @@ EXAMPLES $sfdx force:data:record:update -s Account -i 001D000000Kv3dl -v "Name=NewAcme" --perflog --json ``` -_See code: [src/commands/force/data/record/update.ts](https://github.com/salesforcecli/plugin-data/blob/v2.0.3/src/commands/force/data/record/update.ts)_ +_See code: [src/commands/force/data/record/update.ts](https://github.com/salesforcecli/plugin-data/blob/v2.0.4/src/commands/force/data/record/update.ts)_ -## `sfdx force:data:soql:query -q [-t] [-r human|csv|json] [--perflog --json] [-u ] [--apiversion ] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]` +## `sfdx force:data:soql:query [-q | -f ] [-t] [-r human|csv|json] [--perflog --json] [-u ] [--apiversion ] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]` execute a SOQL query ``` USAGE - $ sfdx force:data:soql:query -q [-t] [-r human|csv|json] [--perflog --json] [-u ] [--apiversion - ] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL] + $ sfdx force:data:soql:query [-q | -f ] [-t] [-r human|csv|json] [--perflog --json] [-u ] + [--apiversion ] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL] FLAGS - -q, --query= (required) SOQL query to execute + -f, --soqlqueryfile= A SOQL query stored in a file + -q, --query= SOQL query to execute -r, --resultformat=(human|csv|json) [default: human] result format emitted to stdout; --json flag overrides this parameter @@ -461,9 +462,13 @@ EXAMPLES $ sfdx force:data:soql:query -q "SELECT Id, Name FROM Account WHERE ShippingState IN ('CA', 'NY')" --perflog --json $ sfdx force:data:soql:query -q "SELECT Name FROM ApexTrigger" -t + + $ sfdx force:data:soql:query --soqlqueryfile query.txt + + $ sfdx force:data:soql:query --soqlqueryfile query.txt -t ``` -_See code: [src/commands/force/data/soql/query.ts](https://github.com/salesforcecli/plugin-data/blob/v2.0.3/src/commands/force/data/soql/query.ts)_ +_See code: [src/commands/force/data/soql/query.ts](https://github.com/salesforcecli/plugin-data/blob/v2.0.4/src/commands/force/data/soql/query.ts)_ ## `sfdx force:data:tree:export -q [-p] [-x ] [-d ] [-u ] [--apiversion ] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]` @@ -505,7 +510,7 @@ EXAMPLES $ sfdx force:data:tree:export -q -x export-demo -d /tmp/sfdx-out -p ``` -_See code: [src/commands/force/data/tree/export.ts](https://github.com/salesforcecli/plugin-data/blob/v2.0.3/src/commands/force/data/tree/export.ts)_ +_See code: [src/commands/force/data/tree/export.ts](https://github.com/salesforcecli/plugin-data/blob/v2.0.4/src/commands/force/data/tree/export.ts)_ ## `sfdx force:data:tree:import [-f | -p ] [--confighelp] [-u ] [--apiversion ] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]` @@ -555,6 +560,6 @@ EXAMPLES $ sfdx force:data:tree:import -p Account-Contact-plan.json -u me@my.org ``` -_See code: [src/commands/force/data/tree/import.ts](https://github.com/salesforcecli/plugin-data/blob/v2.0.3/src/commands/force/data/tree/import.ts)_ +_See code: [src/commands/force/data/tree/import.ts](https://github.com/salesforcecli/plugin-data/blob/v2.0.4/src/commands/force/data/tree/import.ts)_ diff --git a/package.json b/package.json index b1dc661b..1c9f9035 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@salesforce/plugin-data", - "version": "2.0.4", + "version": "2.1.0", "description": "Plugin for salesforce data commands", "author": "Salesforce", "main": "lib/index.js",