Deprecate key commands in favor of ssh-key

Change-type: patch
This commit is contained in:
myarmolinsky 2024-09-25 07:32:08 -04:00
parent 3251f04287
commit 3dee7bd6f6
4 changed files with 6 additions and 3 deletions

View File

@ -3730,7 +3730,7 @@ Examples:
### Aliases
- `key add`
- `key add` *(deprecated)*
To use one of the aliases, replace `ssh-key add` with the alias.
@ -3778,7 +3778,7 @@ the path to the public key file
### Aliases
- `key`
- `key` *(deprecated)*
To use one of the aliases, replace `ssh-key` with the alias.
@ -3823,7 +3823,7 @@ Examples:
### Aliases
- `key rm`
- `key rm` *(deprecated)*
To use one of the aliases, replace `ssh-key rm` with the alias.

View File

@ -22,6 +22,7 @@ import { getBalenaSdk, stripIndent } from '../../utils/lazy';
export default class SSHKeyAddCmd extends Command {
public static aliases = ['key add'];
public static deprecateAliases = true;
public static description = stripIndent`
Add an SSH key to balenaCloud.

View File

@ -22,6 +22,7 @@ import { parseAsInteger } from '../../utils/validation';
export default class SSHKeyCmd extends Command {
public static aliases = ['key'];
public static deprecateAliases = true;
public static description = stripIndent`
Display an SSH key.

View File

@ -22,6 +22,7 @@ import { parseAsInteger } from '../../utils/validation';
export default class SSHKeyRmCmd extends Command {
public static aliases = ['key rm'];
public static deprecateAliases = true;
public static description = stripIndent`
Remove an SSH key from balenaCloud.