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 🙏

© 2026 – Pkg Stats / Ryan Hefner

sf-plugin-trialforce

v1.0.4

Published

sf plugin for creating trial orgs

Readme

sf-plugin-trialforce

A Salesforce CLI plugin for creating trial orgs.

Requires a Trialforce Management Org (TMO) or Environment Hub org authenticated in the CLI.

Install

sf plugins install sf-plugin-trialforce

Commands

sf org create trial

Create a Salesforce trial org using a SignupRequest

USAGE
  $ sf org create trial -o <value> [--json] [--flags-dir <value>] [-f <value>] [--template-id <value>] [--edition
    <value>] [--company <value>] [--country <value>] [--signup-email <value>] [--first-name <value>] [--last-name
    <value>] [--username <value>] [--subdomain <value>] [--should-connect-to-env-hub] [--trial-days <value>]
    [--preferred-language <value>] [--signup-source <value>] [-a <value>] [-d] [--async] [-w <minutes>]

FLAGS
  -a, --alias=<value>            Alias to set for the created trial org
  -d, --set-default              Set the created trial org as your default org
  -f, --definition-file=<value>  Path to a JSON file with SignupRequest field values; CLI flags override file values
  -o, --target-org=<value>       (required) Trialforce Management Org (TMO) or Environment Hub org that will create the
                                 trial
  -w, --wait=<minutes>           Number of minutes to wait for the trial org to be created
      --async                    Submit the SignupRequest and return immediately without waiting for org creation

SIGNUP REQUEST FLAGS
  --company=<value>             Company name for the trial org admin
  --country=<value>             ISO 2-letter country code for the trial org admin
  --edition=<value>             Salesforce edition for the trial org.
  --first-name=<value>          First name of the trial org admin
  --last-name=<value>           Last name of the trial org admin
  --preferred-language=<value>  Preferred language locale for the trial org (e.g. en_US, de, fr)
  --should-connect-to-env-hub   Connect the created org to the Environment Hub
  --signup-email=<value>        Email address for the trial org admin
  --signup-source=<value>       Identifies the source of the signup request
  --subdomain=<value>           My Domain subdomain prefix for the trial org
  --template-id=<value>         The 15-character ID of the Trialforce template that is the basis for the trial sign-up
                                (0TT...).
  --trial-days=<value>          Number of days the trial org should be active
  --username=<value>            Username for the trial org admin

GLOBAL FLAGS
  --flags-dir=<value>  Import flag values from a directory.
  --json               Format output as json.

EXAMPLES
  $ sf org create trial --target-org myTMO --definition-file trial-def.json

  $ sf org create trial --target-org myTMO --template-id 0TTxx0000000001 --company Acme --country US --email [email protected] --last-name Doe --username [email protected]

  $ sf org create trial --target-org myTMO --definition-file trial-def.json --async

FLAG DESCRIPTIONS
  --edition=<value>  Salesforce edition for the trial org.

    If you don't specify a template ID, an edition is required.

  --template-id=<value>  The 15-character ID of the Trialforce template that is the basis for the trial sign-up (0TT...).

    Salesforce must approve the template. If you don't specify an edition, a template ID is required.

See code: lib/commands/org/create/trial.js

sf org list trial

List trial org SignupRequests from a Trialforce Management Org

USAGE
  $ sf org list trial -o <value> [--json] [--flags-dir <value>] [--limit <value>]

FLAGS
  -o, --target-org=<value>  (required) Trialforce Management Org (TMO) to query
      --limit=<value>       [default: 20] SOQL LIMIT

GLOBAL FLAGS
  --flags-dir=<value>  Import flag values from a directory.
  --json               Format output as json.

EXAMPLES
  $ sf org list trial --target-org myTMO

See code: lib/commands/org/list/trial.js

sf org resume trial

Resume polling for a trial org creation that was started with --async

USAGE
  $ sf org resume trial -o <value> -i <value> [--json] [--flags-dir <value>] [-a <value>] [-d] [-w <minutes>]

FLAGS
  -a, --alias=<value>              Alias to set for the created trial org
  -d, --set-default                Set the created trial org as your default org
  -i, --signup-request-id=<value>  (required) ID of the SignupRequest record to resume (returned by org create trial
                                   --async)
  -o, --target-org=<value>         (required) Trialforce Management Org (TMO) that submitted the original SignupRequest
  -w, --wait=<minutes>             Number of minutes to wait for the trial org to be created

GLOBAL FLAGS
  --flags-dir=<value>  Import flag values from a directory.
  --json               Format output as json.

EXAMPLES
  $ sf org resume trial --target-org myTMO --signup-request-id 0SR...

  $ sf org resume trial --target-org myTMO --signup-request-id 0SR... --alias myTrialOrg --set-default

See code: lib/commands/org/resume/trial.js

sf trialforce list template

List Trialforce templates from a Trialforce Source Organization (TSO)

USAGE
  $ sf trialforce list template -o <value> [--json] [--flags-dir <value>] [--latest]

FLAGS
  -o, --target-org=<value>  (required) Trialforce Source Organization (TSO) to query
      --latest              Show only the Id of the latest template

GLOBAL FLAGS
  --flags-dir=<value>  Import flag values from a directory.
  --json               Format output as json.

EXAMPLES
  $ sf trialforce list template --target-org myTMO

  $ sf trialforce list template --target-org myTMO --latest

See code: lib/commands/trialforce/list/template.js

Definition file format

{
  "templateId": "0TTxx0000000001",
  "company": "Acme",
  "country": "US",
  "email": "[email protected]",
  "firstName": "Jane",
  "lastName": "Doe",
  "username": "[email protected]",
  "trialDays": 30
}

Development

npm ci
./bin/dev.js org create trial --help

Or link into the CLI:

sf plugins link
sf org create trial --help

Testing

npm test