Kitalive SFDX plugin
npm install @kitalive/sfdx-plugin

```
sf plugins install @kitalive/sfdx-plugin
`sh-session`
$ npm install -g @kitalive/sfdx-plugin
$ sf COMMAND
running command...
$ sf (--version)
@kitalive/sfdx-plugin/1.0.3 darwin-arm64 node-v22.17.1
$ sf --help [COMMAND]
USAGE
$ sf COMMAND
...
* sf kit data bulk delete
* sf kit data bulk insert
* sf kit data bulk query
* sf kit data bulk update
* sf kit data bulk upsert
* sf kit data csv convert
* sf kit graphql editor
* sf kit layout assignments deploy
* sf kit layout assignments retrieve
* sf kit metadata dependencies
* sf kit object fields describe
* sf kit object fields setup
* sf kit script
* sf kit script execute
Bulk delete records by SOQL select query.
`
USAGE
$ sf kit data bulk delete -q
Serial|Parallel] [-s
FLAGS
-o, --target-org=
configuration variable is already set.
-q, --query=
-s, --batch-size=
-w, --wait=
results
--api-version=
--concurrency-mode=
GLOBAL FLAGS
--flags-dir=
--json Format output as json.
EXAMPLES
Delete Opportunity records with CloseDate older than 2 years:
$ sf kit data bulk delete -q "SELECT Id FROM Opportunity WHERE CloseDate < LAST_N_YEARS:2"
`
_See code: src/commands/kit/data/bulk/delete.ts_
For information about CSV file formats, see Prepare CSV Files in the Bulk API Developer Guide.
`
USAGE
$ sf kit data bulk insert -s
[--skip-lines
Serial|Parallel] [--assignment-rule-id
FLAGS
-c, --converter=
-d, --delimiter=
-e, --encoding=
-f, --csv-file=
-m, --mapping=
-o, --target-org=
configuration variable is already set.
-q, --quote=
-r, --result-file=
-s, --sobject=
-w, --wait=
results
--api-version=
--assignment-rule-id=
--batch-size=
--concurrency-mode=
DESCRIPTION
For information about CSV file formats, see Prepare CSV
Files in
the Bulk API Developer Guide.
EXAMPLES
Insert Account records with mapping.json:
$ sf kit data bulk insert -o Account -f ./path/to/Account.csv -m ./path/to/mapping.json
%s MyObject__c records with convert.js:
$ sf kit data bulk insert -o MyObject__c -f ./path/to/MyObject__c.csv -c ./path/to/convert.js -w 10
`
_See code: src/commands/kit/data/bulk/insert.ts_
Bulk query records.
`
USAGE
$ sf kit data bulk query -q
[--api-version
FLAGS
-f, --csv-file=
-o, --target-org=
configuration variable is already set.
-q, --query=
-w, --wait=
the results
--all include deleted or archived records
--api-version=
GLOBAL FLAGS
--flags-dir=
--json Format output as json.
EXAMPLES
Query Account records and save to specified path:
$ sf kit data bulk query -q "SELECT Id, Name FROM Account" -f ./path/to/Account.csv
`
_See code: src/commands/kit/data/bulk/query.ts_
For information about CSV file formats, see Prepare CSV Files in the Bulk API Developer Guide.
`
USAGE
$ sf kit data bulk update -s
[--skip-lines
Serial|Parallel] [--assignment-rule-id
FLAGS
-c, --converter=
-d, --delimiter=
-e, --encoding=
-f, --csv-file=
-m, --mapping=
-o, --target-org=
configuration variable is already set.
-q, --quote=
-r, --result-file=
-s, --sobject=
-w, --wait=
results
--api-version=
--assignment-rule-id=
--batch-size=
--concurrency-mode=
DESCRIPTION
For information about CSV file formats, see Prepare CSV
Files in
the Bulk API Developer Guide.
EXAMPLES
Update Account records with mapping.json:
$ sf kit data bulk update -o Account -f ./path/to/Account.csv -m ./path/to/mapping.json
%s MyObject__c records with convert.js:
$ sf kit data bulk update -o MyObject__c -f ./path/to/MyObject__c.csv -c ./path/to/convert.js -w 10
`
_See code: src/commands/kit/data/bulk/update.ts_
For information about CSV file formats, see Prepare CSV Files in the Bulk API Developer Guide.
`
USAGE
$ sf kit data bulk upsert -s
Serial|Parallel] [--assignment-rule-id
FLAGS
-c, --converter=
-d, --delimiter=
-e, --encoding=
-f, --csv-file=
-i, --external-id=
-m, --mapping=
-o, --target-org=
configuration variable is already set.
-q, --quote=
-r, --result-file=
-s, --sobject=
-w, --wait=
results
--api-version=
--assignment-rule-id=
--batch-size=
--concurrency-mode=
DESCRIPTION
For information about CSV file formats, see Prepare CSV
Files in
the Bulk API Developer Guide.
EXAMPLES
Upsert Account records with mapping.json:
$ sf kit data bulk upsert -o Account -f ./path/to/Account.csv -m ./path/to/mapping.json
Upsert MyObject__c with convert.js and external ID
$ sf kit data bulk upsert -o MyObject__c -f ./path/to/MyObject__c.csv -c ./path/to/convert.js -i MyExternalId__c \
-w 10
`
_See code: src/commands/kit/data/bulk/upsert.ts_
Convert CSV data using column mapping file or Node.js script.
`
USAGE
$ sf kit data csv convert [--json] [--flags-dir
FLAGS
-c, --converter=
-d, --delimiter=
-e, --encoding=
-f, --output=
-i, --input=
-m, --mapping=
-o, --target-org=
-q, --quote=
--api-version=
--skip-lines=
--trim Trim all white space from columns
GLOBAL FLAGS
--flags-dir=
--json Format output as json.
EXAMPLES
Convert csv file using mapping file and output to standard output:
$ sf kit data csv convert -i ./path/to/input.csv -m ./path/to/mapping.json
Convert csv file using script and output to specified path:
$ sf kit data csv convert -i ./path/to/input.csv -f ./path/to/output.csv -c ./path/to/convert.js
`
_See code: src/commands/kit/data/csv/convert.ts_
Open the GraphQL Editor in a browser
`
USAGE
$ sf kit graphql editor -o
FLAGS
-b, --browser=
GLOBAL FLAGS
--flags-dir=
--json Format output as json.
DESCRIPTION
Open the GraphQL Editor in a browser
It can interact with Salesforce GraphQL API using GraphiQL
EXAMPLES
$ sf kit graphql editor
$ sf kit graphql editor --port 8080
`
_See code: src/commands/kit/graphql/editor.ts_
Deploy page layout assignments from JSON file.
`
USAGE
$ sf kit layout assignments deploy -f
FLAGS
-f, --file=
assignment settings.
-o, --target-org=
configuration variable is already set.
--api-version=
GLOBAL FLAGS
--flags-dir=
--json Format output as json.
EXAMPLES
Deploy from the default file path to the default org:
$ sf kit layout assignments deploy
Deploy from the specified file to the default org:
$ sf kit layout assignments deploy -f config/layout-assignments.scratch.json
Deploy from the specified file to the specified org:
$ sf kit layout assignments deploy -o me@my.org -f config/layout-assignments.sandbox.json
`
_See code: src/commands/kit/layout/assignments/deploy.ts_
Retrieve page layout assignments and save to JSON file.
`
USAGE
$ sf kit layout assignments retrieve -f
[--api-version
FLAGS
-f, --file=
assignment settings.
-o, --target-org=
configuration variable is already set.
-p, --profile=
-s, --sobject=
--api-version=
--merge Merge retrieved configurations with existing file.
GLOBAL FLAGS
--flags-dir=
--json Format output as json.
EXAMPLES
Retrieve page layout assignments from the default org and save to the default path:
$ sf kit layout assignments retrieve
Retrieve Admin profile's Account and Contact page layout assignments and save to the specified path:
$ sf kit layout assignments retrieve -p Admin -s Account -s Contact -f config/layout-assignments.scratch.json
Retrieve page layout assignments from the specified org and save to the specified path:
$ sf kit layout assignments retrieve -o me@my.org -f config/layout-assignments.sandbox.json
`
_See code: src/commands/kit/layout/assignments/retrieve.ts_
Analyze metadata dependencies
`
USAGE
$ sf kit metadata dependencies -o
FLAGS
-b, --browser=
GLOBAL FLAGS
--flags-dir=
--json Format output as json.
EXAMPLES
$ sf kit metadata dependencies
`
_See code: src/commands/kit/metadata/dependencies.ts_
Describe sobject fields information.
`
USAGE
$ sf kit object fields describe -s
FLAGS
-f, --file=
-o, --target-org=
configuration variable is already set.
-s, --sobject=
--api-version=
GLOBAL FLAGS
--flags-dir=
--json Format output as json.
EXAMPLES
Describe Account fields of the default org and save to csv file:
$ sf kit object fields describe -s Account -f path/to/account_fields.csv
Output CustomObject__c fields of the specified org as JSON format:
$ sf kit object fields describe -o me@my.org -s CustomObject__c --json
`
_See code: src/commands/kit/object/fields/describe.ts_
Upsert and delete sobject fields from a CSV file.
`
USAGE
$ sf kit object fields setup -s
[--api-version
FLAGS
-f, --file=
-o, --target-org=
configuration variable is already set.
-s, --sobject=
--api-version=
--delete Delete fields that are not in the csv file
--force Do not confirm when deleting
GLOBAL FLAGS
--flags-dir=
--json Format output as json.
EXAMPLES
Upsert Account fields to the default org:
$ sf kit object fields setup -s Account -f path/to/account_fields.csv
Upsert and delete CustomObject__c fields to the specified org:
$ sf kit object fields setup -o me@my.org -s CustomObject__c -f path/to/custom_object_fields.csv --delete
`
_See code: src/commands/kit/object/fields/setup.ts_
Execute Node.js scripts in SfCommand context.
`
USAGE
$ sf kit script [--json] [--flags-dir
FLAGS
-f, --file=
-o, --target-org=
--api-version=
GLOBAL FLAGS
--flags-dir=
--json Format output as json.
DESCRIPTION
Execute Node.js scripts in SfCommand context.
Available variables in Node.js scripts
- argv: Parsed command line arguments after the file option
- conn: jsforce Connection
- context: SfCommand
ALIASES
$ sf kit script
EXAMPLES
Execute from js file:
$ sf kit script -f ./path/to/script.js
Execute from js file with arguments:
$ sf kit script -f ./path/to/script.js -- --opt1 val1 --opt2 val2 arg1 arg2
Execute in REPL mode:
$ sf kit script -o target-org
query a account from org in REPL
> await conn.query('SELECT Id, Name FROM Account LIMIT 1')
`
Execute Node.js scripts in SfCommand context.
`
USAGE
$ sf kit script execute [--json] [--flags-dir
FLAGS
-f, --file=
-o, --target-org=
--api-version=
GLOBAL FLAGS
--flags-dir=
--json Format output as json.
DESCRIPTION
Execute Node.js scripts in SfCommand context.
Available variables in Node.js scripts
- argv: Parsed command line arguments after the file option
- conn: jsforce Connection
- context: SfCommand
ALIASES
$ sf kit script
EXAMPLES
Execute from js file:
$ sf kit script execute -f ./path/to/script.js
Execute from js file with arguments:
$ sf kit script execute -f ./path/to/script.js -- --opt1 val1 --opt2 val2 arg1 arg2
Execute in REPL mode:
$ sf kit script execute -o target-org
query a account from org in REPL
> await conn.query('SELECT Id, Name FROM Account LIMIT 1')
``
_See code: src/commands/kit/script/execute.ts_