diff --git a/messages/jwt.grant.md b/messages/jwt.grant.md index d0bb8458..aaa05457 100644 --- a/messages/jwt.grant.md +++ b/messages/jwt.grant.md @@ -20,7 +20,7 @@ We recommend that you set an alias when you log into an org. Aliases make it eas # examples -- Log into an org with username jdoe@example.org and on the default instance URL (https://login.salesforce.org). The private key is stored in the file /Users/jdoe/JWT/server.key and the command uses the connected app with consumer key (client id) 04580y4051234051. +- Log into an org with username jdoe@example.org and on the default instance URL (https://login.salesforce.com). The private key is stored in the file /Users/jdoe/JWT/server.key and the command uses the connected app with consumer key (client id) 04580y4051234051. <%= config.bin %> <%= command.id %> --username jdoe@example.org --jwt-key-file /Users/jdoe/JWT/server.key --client-id 04580y4051234051 diff --git a/src/commands/org/login/device.ts b/src/commands/org/login/device.ts index 9e4ff604..048b8d2c 100644 --- a/src/commands/org/login/device.ts +++ b/src/commands/org/login/device.ts @@ -5,8 +5,6 @@ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ - - import { AuthFields, AuthInfo, DeviceOauthService, Messages, OAuth2Config } from '@salesforce/core'; import { Flags, loglevel } from '@salesforce/sf-plugins-core'; import { DeviceCodeResponse } from '@salesforce/core/lib/deviceOauthService.js'; @@ -14,7 +12,7 @@ import { ux } from '@oclif/core'; import { AuthBaseCommand } from '../../../authBaseCommand.js'; import { Common } from '../../../common.js'; -Messages.importMessagesDirectoryFromMetaUrl(import.meta.url) +Messages.importMessagesDirectoryFromMetaUrl(import.meta.url); const messages = Messages.loadMessages('@salesforce/plugin-auth', 'device.login'); const commonMessages = Messages.loadMessages('@salesforce/plugin-auth', 'messages'); @@ -25,6 +23,7 @@ export default class LoginDevice extends AuthBaseCommand { public static readonly description = messages.getMessage('description'); public static readonly examples = messages.getMessages('examples'); public static aliases = ['force:auth:device:login', 'auth:device:login']; + public static readonly deprecateAliases = true; public static readonly flags = { 'client-id': Flags.string({ diff --git a/src/commands/org/login/jwt.ts b/src/commands/org/login/jwt.ts index 5b1d781c..229870a1 100644 --- a/src/commands/org/login/jwt.ts +++ b/src/commands/org/login/jwt.ts @@ -5,15 +5,13 @@ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ - - import { Flags, loglevel } from '@salesforce/sf-plugins-core'; import { AuthFields, AuthInfo, AuthRemover, Logger, Messages, SfError } from '@salesforce/core'; import { Interfaces } from '@oclif/core'; import { AuthBaseCommand } from '../../../authBaseCommand.js'; import { Common } from '../../../common.js'; -Messages.importMessagesDirectoryFromMetaUrl(import.meta.url) +Messages.importMessagesDirectoryFromMetaUrl(import.meta.url); const messages = Messages.loadMessages('@salesforce/plugin-auth', 'jwt.grant'); const commonMessages = Messages.loadMessages('@salesforce/plugin-auth', 'messages'); @@ -22,6 +20,7 @@ export default class LoginJwt extends AuthBaseCommand { public static readonly description = messages.getMessage('description'); public static readonly examples = messages.getMessages('examples'); public static aliases = ['force:auth:jwt:grant', 'auth:jwt:grant']; + public static readonly deprecateAliases = true; public static readonly flags = { username: Flags.string({ diff --git a/src/commands/org/login/sfdx-url.ts b/src/commands/org/login/sfdx-url.ts index 7945a9b9..2cd4cef1 100644 --- a/src/commands/org/login/sfdx-url.ts +++ b/src/commands/org/login/sfdx-url.ts @@ -5,8 +5,6 @@ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ - - import fs from 'node:fs/promises'; import { Flags, loglevel } from '@salesforce/sf-plugins-core'; import { AuthFields, AuthInfo, Messages } from '@salesforce/core'; @@ -14,7 +12,7 @@ import { AnyJson } from '@salesforce/ts-types'; import { parseJson } from '@salesforce/kit'; import { AuthBaseCommand } from '../../../authBaseCommand.js'; -Messages.importMessagesDirectoryFromMetaUrl(import.meta.url) +Messages.importMessagesDirectoryFromMetaUrl(import.meta.url); const messages = Messages.loadMessages('@salesforce/plugin-auth', 'sfdxurl.store'); const commonMessages = Messages.loadMessages('@salesforce/plugin-auth', 'messages'); @@ -29,6 +27,7 @@ export default class LoginSfdxUrl extends AuthBaseCommand { public static readonly description = messages.getMessage('description', [AUTH_URL_FORMAT]); public static readonly examples = messages.getMessages('examples'); public static aliases = ['force:auth:sfdxurl:store', 'auth:sfdxurl:store']; + public static readonly deprecateAliases = true; public static readonly flags = { 'sfdx-url-file': Flags.file({ diff --git a/src/commands/org/login/web.ts b/src/commands/org/login/web.ts index 2e1ecae1..17d4f272 100644 --- a/src/commands/org/login/web.ts +++ b/src/commands/org/login/web.ts @@ -5,8 +5,6 @@ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ - - import open, { apps, AppName } from 'open'; import { Flags, loglevel } from '@salesforce/sf-plugins-core'; import { AuthFields, AuthInfo, Logger, Messages, OAuth2Config, SfError, WebOAuthServer } from '@salesforce/core'; @@ -15,7 +13,7 @@ import { Interfaces } from '@oclif/core'; import { AuthBaseCommand } from '../../../authBaseCommand.js'; import { Common } from '../../../common.js'; -Messages.importMessagesDirectoryFromMetaUrl(import.meta.url) +Messages.importMessagesDirectoryFromMetaUrl(import.meta.url); const messages = Messages.loadMessages('@salesforce/plugin-auth', 'web.login'); const commonMessages = Messages.loadMessages('@salesforce/plugin-auth', 'messages'); @@ -24,7 +22,7 @@ export default class LoginWeb extends AuthBaseCommand { public static readonly description = messages.getMessage('description'); public static readonly examples = messages.getMessages('examples'); public static readonly deprecateAliases = true; - public static aliases = ['force:auth:web:login', 'auth:web:login']; + public static readonly aliases = ['force:auth:web:login', 'auth:web:login']; public static readonly flags = { browser: Flags.string({