backend-manager 5.2.10 → 5.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -14,6 +14,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
14
14
  - `Fixed` for any bug fixes.
15
15
  - `Security` in case of vulnerabilities.
16
16
 
17
+ # [5.2.11] - 2026-05-27
18
+
19
+ ### Added
20
+
21
+ - **CLI: bare `logs` is now an alias for `logs:read`.** `npx mgr logs [...flags]` now dispatches to the same handler as `npx mgr logs:read`, so callers (humans and AI assistants alike) no longer error out when they omit the `:read` suffix. Routing in `src/cli/index.js` accepts the bare `logs` option, and `src/cli/commands/logs.js` maps the bare subcommand to the `read` action. `logs:tail` and `logs:stream` are unchanged.
22
+
17
23
  # [5.2.10] - 2026-05-26
18
24
 
19
25
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backend-manager",
3
- "version": "5.2.10",
3
+ "version": "5.2.11",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -22,8 +22,8 @@ class LogsCommand extends BaseCommand {
22
22
  async execute() {
23
23
  const argv = this.main.argv;
24
24
  const args = argv._ || [];
25
- const subcommand = args[0]; // e.g., 'logs:read'
26
- const action = subcommand.split(':')[1];
25
+ const subcommand = args[0]; // e.g., 'logs:read' (bare `logs` aliases to `logs:read`)
26
+ const action = subcommand === 'logs' ? 'read' : subcommand.split(':')[1];
27
27
 
28
28
  // Check gcloud is installed
29
29
  if (!this.isGcloudInstalled()) {
package/src/cli/index.js CHANGED
@@ -148,8 +148,8 @@ Main.prototype.process = async function (args) {
148
148
  return await cmd.execute();
149
149
  }
150
150
 
151
- // Logs utility commands
152
- if (self.options['logs:read'] || self.options['logs:tail'] || self.options['logs:stream']) {
151
+ // Logs utility commands (`logs` is an alias for `logs:read`)
152
+ if (self.options['logs'] || self.options['logs:read'] || self.options['logs:tail'] || self.options['logs:stream']) {
153
153
  const cmd = new LogsCommand(self);
154
154
  return await cmd.execute();
155
155
  }