Deprecate scan command in favor of device detect

Change-type: patch
This commit is contained in:
myarmolinsky 2024-09-26 08:02:01 -04:00
parent fca255dd93
commit 3fa668665c
2 changed files with 2 additions and 1 deletions

View File

@ -1296,7 +1296,7 @@ answer "yes" to all questions (non interactive use)
### Aliases ### Aliases
- `scan` - `scan` *(deprecated)*
To use one of the aliases, replace `device detect` with the alias. To use one of the aliases, replace `device detect` with the alias.

View File

@ -21,6 +21,7 @@ import { getCliUx, stripIndent } from '../../utils/lazy';
export default class DeviceDetectCmd extends Command { export default class DeviceDetectCmd extends Command {
public static aliases = ['scan']; public static aliases = ['scan'];
public static deprecateAliases = true;
public static description = stripIndent` public static description = stripIndent`
Scan for balenaOS devices on your local network. Scan for balenaOS devices on your local network.