Const
An optional org that, if present, must be a devHub Will throw if the specified org does not exist Will default to the default dev hub if one is not specified Will NOT throw if no default deb hub exists and none is specified
import { Flags } from '@salesforce/sf-plugins-core';public static flags = { // setting length or prefix 'target-org': optionalHubFlag(), // adding properties 'flag2': optionalHubFlag({ description: 'flag2 description', char: 'h' }),} Copy
import { Flags } from '@salesforce/sf-plugins-core';public static flags = { // setting length or prefix 'target-org': optionalHubFlag(), // adding properties 'flag2': optionalHubFlag({ description: 'flag2 description', char: 'h' }),}
An optional org that, if present, must be a devHub Will throw if the specified org does not exist Will default to the default dev hub if one is not specified Will NOT throw if no default deb hub exists and none is specified