npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@kratapps/sf-plugin

v1.0.15

Published

kratapps.com

Downloads

2,135

Readme

kratapps sf plugin

sf kratapps query generate

BETA command. Generate SOQL.

USAGE
  $ sf kratapps query generate -o <value> --object-name <value> [--json] [--by-default all|none] [--type-is <value>]
    [--type-is-not <value>] [--name-is <value>] [--name-is-not <value>] [--relationship-name-is <value>]
    [--relationship-name-is-not <value>] [--is-auto-number] [--is-not-auto-number] [--is-calculated]
    [--is-not-calculate] [--is-createable] [--is-not-createable] [--is-custom] [--is-not-custom] [--is-encrypted]
    [--is-not-encrypted] [--is-external-id] [--is-not-external-id] [--is-name-field] [--is-not-name-field]
    [--is-nillable] [--is-not-nillable] [--is-unique] [--is-not-unique] [--is-updateable] [--is-not-updateable]
    [--add-parent-field <value>] [--add-ref-field <value>]

FLAGS
  -o, --target-org=<value>                   (required) Username or alias of the target org to describe objects.
      --add-parent-field=<value>...          Add fields from relationship by relationship name.
      --add-ref-field=<value>...             Add fields from relationship by referenced object.
      --by-default=<option>                  [default: all] Add 'all' fields and then filter out or add 'none' and
                                             filter in.
                                             <options: all|none>
      --is-auto-number                       Add auto number fields.
      --is-calculated                        Add calculated fields.
      --is-createable                        Add createable fields.
      --is-custom                            Add custom fields.
      --is-encrypted                         Add encrypted fields.
      --is-external-id                       Add external ID fields.
      --is-name-field                        Add name fields.
      --is-nillable                          Add nillable fields.
      --is-not-auto-number                   Exclude auto number fields.
      --is-not-calculate                     Exclude calculated fields.
      --is-not-createable                    Exclude createable fields.
      --is-not-custom                        Exclude custom fields.
      --is-not-encrypted                     Exclude encrypted fields.
      --is-not-external-id                   Exclude external ID fields.
      --is-not-name-field                    Exclude name fields.
      --is-not-nillable                      Exclude nillable fields.
      --is-not-unique                        Exclude unique fields.
      --is-not-updateable                    Exclude updateable fields.
      --is-unique                            Add unique fields.
      --is-updateable                        Add updateable fields.
      --name-is=<value>...                   Add fields by name.
      --name-is-not=<value>...               Exclude fields by name.
      --object-name=<value>                  (required) Target object name for which to generate SOQL.
      --relationship-name-is=<value>...      Add fields by relationship name.
      --relationship-name-is-not=<value>...  Exclude fields by relationship name.
      --type-is=<value>...                   Add fields by type.
      --type-is-not=<value>...               Exclude fields by type.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  BETA command. Generate SOQL.

  Generate SOQL via CLI. Used by `sf kratapps sfdmu prepare backup` to create queries dynamically.

EXAMPLES
  $ sf kratapps query generate

FLAG DESCRIPTIONS
  --add-parent-field=<value>...  Add fields from relationship by relationship name.

    <relationshipName>.<fieldsCommaSeparated>
    For example to include Name and Username from LastModifiedBy relationship "LastModifiedBy.Name,Username"

  --add-ref-field=<value>...  Add fields from relationship by referenced object.

    <relationshipObjectName>:<fieldsCommaSeparated>
    For example to include Name and Username from any relationship to User "User:Name,Username"

sf kratapps remote deploy start

Deploy code from a remote repository.

USAGE
  $ sf kratapps remote deploy start -o <value> --repo-owner <value> --repo-name <value> [--json] [--repo-ref <value>] [-d <value>
    |  | -m <value> | ] [--token <value>]

FLAGS
  -d, --source-dir=<value>...  File paths.
  -m, --metadata=<value>...    Metadata component name.
  -o, --target-org=<value>     (required) Login username or alias for the target org.
      --repo-name=<value>      (required) Repository name.
      --repo-owner=<value>     (required) Repository owner.
      --repo-ref=<value>       Repository reference.
      --token=<value>          API token.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Deploy code from a remote repository.

  Similar to the "sf project deploy start" command, but it allows deploying the source from a remote repository, such as
  GitHub.

EXAMPLES
  $ sf kratapps remote deploy start

FLAG DESCRIPTIONS
  -d, --source-dir=<value>...  File paths.

    Path to the remote source files to deploy.

  -m, --metadata=<value>...  Metadata component name.

    Components to deploy.

  -o, --target-org=<value>  Login username or alias for the target org.

    Overrides your default org.

  --repo-name=<value>  Repository name.

    Repository owner, for example component-library in github.com/kratapps/component-library.

  --repo-owner=<value>  Repository owner.

    Repository owner, for example kratapps in github.com/kratapps/component-library.

  --repo-ref=<value>  Repository reference.

    Git branch name, rev, tag.

  --token=<value>  API token.

    API token to the external service, e.g. GitHub API Token.
    Required for private repositories and to increase GitHub API request limit.

sf kratapps sfdmu csv2yaml

BETA command. Convert CSV files generated by SFDMU plugin into multiple YAML files, with each record in the CSV saved as a separate YAML file.

USAGE
  $ sf kratapps sfdmu csv2yaml -o <value> [--json] [--preserve-existing] [--sfdmu-dir <value>] [--source-dir <value>]
    [--refresh-schema] [--operations <value>]

FLAGS
  -o, --target-org=<value>  (required) Org to describe the objects.
      --operations=<value>  [default: Insert;Update;Upsert] Filter object configuration based on SFDMU operation.
      --preserve-existing   Retain existing records in the output directory.
      --refresh-schema      Retrieve objects describe even when cached.
      --sfdmu-dir=<value>   [default: out] SFDMU root directory containing the retrieved CSV files.
      --source-dir=<value>  [default: data] Directory root for the generated record files.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  BETA command. Convert CSV files generated by SFDMU plugin into multiple YAML files, with each record in the CSV saved
  as a separate YAML file.

  The SFDMU plugin works only with CSV files.

  We prefer using YAML files, which are smaller, easier to find and read, and optimized for Git.

EXAMPLES
  $ sf kratapps sfdmu csv2yaml

FLAG DESCRIPTIONS
  -o, --target-org=<value>  Org to describe the objects.

    When objects are described, fields such as numbers or booleans are parsed correctly and not retained as strings.

sf kratapps sfdmu prepare backup

Simplify data backups into git using the SFDMU plugin.

USAGE
  $ sf kratapps sfdmu prepare backup [--json] [--sfdmu-dir <value>] [--source-dir <value>] [-o <value>]
  [--refresh-schema]

FLAGS
  -o, --target-org=<value>  Org to describe the objects.
      --refresh-schema      Retrieve objects describe even when cached.
      --sfdmu-dir=<value>   [default: out] SFDMU root directory for generated script.
      --source-dir=<value>  [default: data] Directory root with custom backup.yaml config.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Simplify data backups into git using the SFDMU plugin.

  Prepares data backup configuration for SFDMU plugin.

EXAMPLES
  $ sf kratapps sfdmu prepare backup

FLAG DESCRIPTIONS
  -o, --target-org=<value>  Org to describe the objects.

    Required for query generation.

sf kratapps sfdmu prepare export

Simplify data exports using the SFDMU plugin.

USAGE
  $ sf kratapps sfdmu prepare export [--json] [--sfdmu-dir <value>] [--source-dir <value>]

FLAGS
  --sfdmu-dir=<value>   [default: out] SFDMU root directory for generated script.
  --source-dir=<value>  [default: data] Directory root with custom backup.yaml config.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Simplify data exports using the SFDMU plugin.

  Prepares data export configuration for SFDMU plugin.

EXAMPLES
  $ sf kratapps sfdmu prepare export

sf kratapps sfdmu yaml2csv

BETA command. Convert multiple YAML files into a single CSV files per object.

USAGE
  $ sf kratapps sfdmu yaml2csv [--json] [--source-dir <value>] [--sfdmu-dir <value>] [--operations <value>]

FLAGS
  --operations=<value>  [default: Insert;Update;Upsert] Filter object configuration based on SFDMU operation.
  --sfdmu-dir=<value>   [default: out] SFDMU root directory containing the generated CSV files.
  --source-dir=<value>  [default: data] Directory containing records generated by `sf kratapps data sfdmu csv2yaml`
                        command.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  BETA command. Convert multiple YAML files into a single CSV files per object.

  The SFDMU plugin works only with CSV files.

  We prefer using YAML files, which are smaller, easier to find and read, and optimized for Git.

EXAMPLES
  $ sf kratapps sfdmu yaml2csv