diff --git a/docs/balena-cli.md b/docs/balena-cli.md index 6f3730c8..e1ec7c28 100644 --- a/docs/balena-cli.md +++ b/docs/balena-cli.md @@ -2406,7 +2406,7 @@ do not prompt for confirmation before deleting the variable ### Aliases -- `env add` +- `env add` *(deprecated)* To use one of the aliases, replace `env set` with the alias. diff --git a/src/commands/env/set.ts b/src/commands/env/set.ts index 036ccfd3..6807579b 100644 --- a/src/commands/env/set.ts +++ b/src/commands/env/set.ts @@ -37,6 +37,7 @@ interface ArgsDef { export default class EnvSetCmd extends Command { public static aliases = ['env add']; + public static deprecateAliases = true; public static description = stripIndent` Add or update env or config variable to fleets, devices or services.