Const
An optional org specified by username or alias Will default to the default org if one is not specified. Will not throw if the specified org and default do not exist
import { Flags } from '@salesforce/sf-plugins-core';public static flags = { // setting length or prefix 'target-org': Flags.optionalOrg(), // adding properties 'flag2': Flags.optionalOrg({ required: true, description: 'flag2 description', }),} Copy
import { Flags } from '@salesforce/sf-plugins-core';public static flags = { // setting length or prefix 'target-org': Flags.optionalOrg(), // adding properties 'flag2': Flags.optionalOrg({ required: true, description: 'flag2 description', }),}
An optional org specified by username or alias Will default to the default org if one is not specified. Will not throw if the specified org and default do not exist