@steampunk/steampunk-sfdx-plugin v0.0.1
steampunk-sfdx-plugin
Utilities developed by Steampunk (@SteampunkFoundry)
Setup
Install as a SalesforceDX Plugin
sfdx plugins:install steampunk-sfdx-pluginYou will be prompted to confirm that you want to install an unsigned plugin. Choose "yes"
This plugin is not digitally signed and its authenticity cannot be verified. Continue installation y/n?: yTo whitelist this plugin, add an entry for it in $HOME/.config/sfdx/unsignedPluginWhiteList.json.
Install from source
- Clone the repository
git clone https://github.com/SteampunkFoundry/steampunk-sfdx-plugin.git- Link the plugin:
sfdx plugins:link .Commands
sfdx punk:data:files:upload -p <filepath> [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
Upload multiple files based on a csv as standalone files or linked to records. The csv must have the following headers: Title, PathOnClient. The csv may have the following headers: FirstPublishLocationId. This utility uses the same setup as Salesforce Dataloader for files.
USAGE
$ sfdx punk:data:files:upload -p <filepath> [-u <string>] [--apiversion <string>] [--json] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
OPTIONS
-p, --pathtocsv=pathtocsv (required) path to csv
-u, --targetusername=targetusername username or alias for the target
org; overrides default target org
--apiversion=apiversion override the api version used for
api requests made by this command
--json format output as json
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
this command invocation
EXAMPLE
sfdx chipp:data:files:upload -p ~/FilesToUpload.csvSee code: src/commands/punk/data/files/upload.ts
sfdx punk:data:files:upload -p <filepath> [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
Upload multiple files based on a csv as standalone files or linked to records. The csv must have the following headers: Title, PathOnClient. The csv may have the following headers: FirstPublishLocationId. This utility uses the same setup as Salesforce Dataloader for files.
USAGE
$ sfdx punk:data:files:upload -p <filepath> [-u <string>] [--apiversion <string>] [--json] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
OPTIONS
-p, --pathtocsv=pathtocsv (required) path to csv
-u, --targetusername=targetusername username or alias for the target
org; overrides default target org
--apiversion=apiversion override the api version used for
api requests made by this command
--json format output as json
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
this command invocation
EXAMPLE
sfdx chipp:data:files:upload -p ~/FilesToUpload.csvSee code: src/commands/punk/data/files/upload.ts
4 years ago