From 84985022e5dce3eea9ccb5c3c5bd4982c6670822 Mon Sep 17 00:00:00 2001 From: myarmolinsky Date: Thu, 26 Sep 2024 11:26:19 -0400 Subject: [PATCH] Deprecate `ssh` command in favor of `device ssh` Change-type: patch --- docs/balena-cli.md | 2 +- src/commands/device/ssh.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/balena-cli.md b/docs/balena-cli.md index 66198a97..6f3730c8 100644 --- a/docs/balena-cli.md +++ b/docs/balena-cli.md @@ -1982,7 +1982,7 @@ force action if the update lock is set ### Aliases -- `ssh` +- `ssh` *(deprecated)* To use one of the aliases, replace `device ssh` with the alias. diff --git a/src/commands/device/ssh.ts b/src/commands/device/ssh.ts index 1268ebf5..0469e5fa 100644 --- a/src/commands/device/ssh.ts +++ b/src/commands/device/ssh.ts @@ -25,6 +25,7 @@ import { export default class DeviceSSHCmd extends Command { public static aliases = ['ssh']; + public static deprecateAliases = true; public static description = stripIndent` Open a SSH prompt on a device's host OS or service container.