From 3251f0428743f4681132e995d25840340777580e Mon Sep 17 00:00:00 2001 From: myarmolinsky Date: Tue, 24 Sep 2024 13:56:06 -0400 Subject: [PATCH] Deprecate `keys` command in favor of `key list` Change-type: patch --- docs/balena-cli.md | 4 ++-- src/commands/ssh-key/list.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/balena-cli.md b/docs/balena-cli.md index 9b52d5d4..00a2fdef 100644 --- a/docs/balena-cli.md +++ b/docs/balena-cli.md @@ -3803,8 +3803,8 @@ balenaCloud ID for the SSH key ### Aliases -- `keys` -- `key list` +- `keys` *(deprecated)* +- `key list` *(deprecated)* To use one of the aliases, replace `ssh-key list` with the alias. diff --git a/src/commands/ssh-key/list.ts b/src/commands/ssh-key/list.ts index 78ca85ce..549be44a 100644 --- a/src/commands/ssh-key/list.ts +++ b/src/commands/ssh-key/list.ts @@ -21,6 +21,7 @@ import { getBalenaSdk, getVisuals, stripIndent } from '../../utils/lazy'; export default class SSHKeyListCmd extends Command { public static aliases = ['keys', 'key list']; + public static deprecateAliases = true; public static description = stripIndent` List the SSH keys in balenaCloud.