From 61ebf9e4fd69e03894c0e6bdaabbab5847be380c Mon Sep 17 00:00:00 2001 From: myarmolinsky Date: Thu, 26 Sep 2024 12:32:10 -0400 Subject: [PATCH] Deprecate `env add` in favor of `env set` Change-type: patch --- docs/balena-cli.md | 2 +- src/commands/env/set.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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.