Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stomita/sfdx-devhub-pool
SFDX plugin to generate scratch orgs without hitting daily limit by using multiple DevHub orgs as a pool
https://github.com/stomita/sfdx-devhub-pool
Last synced: about 1 month ago
JSON representation
SFDX plugin to generate scratch orgs without hitting daily limit by using multiple DevHub orgs as a pool
- Host: GitHub
- URL: https://github.com/stomita/sfdx-devhub-pool
- Owner: stomita
- Created: 2019-03-28T03:09:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-14T19:54:18.000Z (over 5 years ago)
- Last Synced: 2024-04-14T09:16:11.621Z (8 months ago)
- Language: TypeScript
- Homepage:
- Size: 194 KB
- Stars: 12
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-sfdx-plugins - sfdx-devhub-pool
README
sfdx-devhub-pool
================SFDX plugin to generate scratch orgs without hitting daily limit by using multiple DevHub orgs as a pool
[![Version](https://img.shields.io/npm/v/sfdx-devhub-pool.svg)](https://npmjs.org/package/sfdx-devhub-pool)
[![CircleCI](https://circleci.com/gh/stomita/sfdx-devhub-pool/tree/master.svg?style=shield)](https://circleci.com/gh/stomita/sfdx-devhub-pool/tree/master)
[![Appveyor CI](https://ci.appveyor.com/api/projects/status/github/stomita/sfdx-devhub-pool?branch=master&svg=true)](https://ci.appveyor.com/project/heroku/sfdx-devhub-pool/branch/master)
[![Codecov](https://codecov.io/gh/stomita/sfdx-devhub-pool/branch/master/graph/badge.svg)](https://codecov.io/gh/stomita/sfdx-devhub-pool)
[![Greenkeeper](https://badges.greenkeeper.io/stomita/sfdx-devhub-pool.svg)](https://greenkeeper.io/)
[![Known Vulnerabilities](https://snyk.io/test/github/stomita/sfdx-devhub-pool/badge.svg)](https://snyk.io/test/github/stomita/sfdx-devhub-pool)
[![Downloads/week](https://img.shields.io/npm/dw/sfdx-devhub-pool.svg)](https://npmjs.org/package/sfdx-devhub-pool)
[![License](https://img.shields.io/npm/l/sfdx-devhub-pool.svg)](https://github.com/stomita/sfdx-devhub-pool/blob/master/package.json)* [`sfdx devhubpool:auth:jwt:grant -i -f -u [-r ] [-a ] [--json] [--loglevel trace|debug|info|warn|error|fatal]`](#sfdx-devhubpoolauthjwtgrant--i-string--f-filepath--u-array--r-string--a-array---json---loglevel-tracedebuginfowarnerrorfatal)
* [`sfdx devhubpool:org:create [-p ] [-f ] [-d ] [-c] [-n] [-a ] [-s] [-w ] [-u ] [--apiversion ] [--json] [--loglevel trace|debug|info|warn|error|fatal]`](#sfdx-devhubpoolorgcreate--p-array--f-filepath--d-integer--c--n--a-string--s--w-integer--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfatal)## `sfdx devhubpool:auth:jwt:grant -i -f -u [-r ] [-a ] [--json] [--loglevel trace|debug|info|warn|error|fatal]`
authorize pooled orgs using the JWT flow
```
USAGE
$ sfdx devhubpool:auth:jwt:grant -i -f -u [-r ] [-a ] [--json]
[--loglevel trace|debug|info|warn|error|fatal]OPTIONS
-a, --setaliases=setaliases set aliases for the authenticated orgs
-f, --jwtkeyfile=jwtkeyfile (required) path to a file containing the private key
-i, --clientid=clientid (required) connected app consumer key
-r, --instanceurl=instanceurl the login URL of the instance the org lives on
-u, --usernames=usernames (required) username list for authentication
--json format output as json
--loglevel=(trace|debug|info|warn|error|fatal) [default: warn] logging level for this command invocationEXAMPLES
$ sfdx devhubpool:auth:jwt:grant -u [email protected],[email protected] -f keys/server.key -i CLIENT_ID
$ sfdx devhubpool:auth:jwt:grant -u [email protected],[email protected] -f keys/server.key -i CLIENT_ID -a
hub01,hub02
```_See code: [src/commands/devhubpool/auth/jwt/grant.ts](https://github.com/stomita/sfdx-devhub-pool/blob/v1.1.0/src/commands/devhubpool/auth/jwt/grant.ts)_
## `sfdx devhubpool:org:create [-p ] [-f ] [-d ] [-c] [-n] [-a ] [-s] [-w ] [-u ] [--apiversion ] [--json] [--loglevel trace|debug|info|warn|error|fatal]`
create a scratch org from pooled devhub orgs
```
USAGE
$ sfdx devhubpool:org:create [-p ] [-f ] [-d ] [-c] [-n] [-a ] [-s] [-w
] [-u ] [--apiversion ] [--json] [--loglevel trace|debug|info|warn|error|fatal]OPTIONS
-a, --setalias=setalias set an alias for for the created scratch org
-c, --noancestors do not include second-generation package ancestors in the scratch org
-d, --durationdays=durationdays duration of the scratch org (in days) (default:7, min:1, max:30)
-f, --definitionfile=definitionfile path to a scratch org definition file
-n, --nonamespace creates the scratch org with no namespace
-p, --devhubpoolusernames=devhubpoolusernames username or alias list for the pooled dev hub orgs
-s, --setdefaultusername set the created org as the default username
-u, --targetusername=targetusername username or alias for the target org; overrides default target org
-w, --wait=wait the streaming client socket timeout (in minutes) (default:6, min:2)
--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) [default: warn] logging level for this command invocationEXAMPLES
$ sfdx devhubpool:org:create -p [email protected],[email protected] -f config/enterprise-scratch-def.json
-a TestOrg1
$ sfdx devhubpool:org:create -p [email protected],[email protected] -a MyDevOrg -s edition=Developer
$ sfdx devhubpool:org:create -p [email protected],[email protected] -f config/enterprise-scratch-def.json
-a OrgWithOverrides [email protected]
```_See code: [src/commands/devhubpool/org/create.ts](https://github.com/stomita/sfdx-devhub-pool/blob/v1.1.0/src/commands/devhubpool/org/create.ts)_