From 9d3f9128a8f57995badaed68f5c01cf51e482d6f Mon Sep 17 00:00:00 2001 From: myarmolinsky Date: Thu, 26 Sep 2024 12:38:51 -0400 Subject: [PATCH] Deprecate `tunnel` command in favor of `device tunnel` Change-type: patch --- docs/balena-cli.md | 2 +- src/commands/device/tunnel.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/balena-cli.md b/docs/balena-cli.md index e1ec7c28..c4ac3b84 100644 --- a/docs/balena-cli.md +++ b/docs/balena-cli.md @@ -2126,7 +2126,7 @@ the uuid of the device to make track the fleet's release ### Aliases -- `tunnel` +- `tunnel` *(deprecated)* To use one of the aliases, replace `device tunnel` with the alias. diff --git a/src/commands/device/tunnel.ts b/src/commands/device/tunnel.ts index fc086853..a325d3f8 100644 --- a/src/commands/device/tunnel.ts +++ b/src/commands/device/tunnel.ts @@ -29,6 +29,7 @@ import type { Server, Socket } from 'net'; export default class DeviceTunnelCmd extends Command { public static aliases = ['tunnel']; + public static deprecateAliases = true; public static description = stripIndent` Tunnel local ports to your balenaOS device.