0.1.1 • Published 4 years ago

chipp-sfdx-plugins v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

chipp-sfdx-plugins

Utilities developed by Clay Chipps (@ctchipps)

Version Codecov Known Vulnerabilities Downloads/week License

Setup

Install as a SalesforceDX Plugin

sfdx plugins:install chipp-sfdx-plugins

You 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?: y

To whitelist this plugin, add an entry for it in $HOME/.config/sfdx/unsignedPluginWhiteList.json.

Install from source

  1. Clone the repository
git clone https://github.com/ctchipps/chipp-sfdx-plugins.git
  1. Link the plugin:
sfdx plugins:link .

Commands

sfdx chipp: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 chipp: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.csv

See code: src/commands/chipp/data/files/upload.ts