Skip to content

bug: apps:bundles:create command should accept empty string for --channel option #85

Description

@matias-miranda

Version

3.2.1

Current behavior

When I execute the CLI it asks me for a channel, then I select No, then it successfully creates the bundle without a channel:

Image

so I was trying to do the same but running the CLI from a custom .sh script locally on my machine. I tried setting an empty --channel like this:

npx @capawesome/cli apps:bundles:create --app-id xxx --channel ""

but then I get ERROR Invalid input: expected string, received boolean

Image

Expected behavior

It should accept an empty string as the --channel option, because it's optional to create a bundle.

This fix allows me to workaround it, but it doesn't fully fit the scenario I described, where I execute it locally, instead of on some of the providers for which isCi is true from std-env lib

Steps to reproduce

  1. When running locally (none of the providers detected by std-env lib)
  2. Run npx @capawesome/cli apps:bundles:create --app-id xxx --channel ""
  3. See the error Invalid input: expected string, received boolean

Other information

No response

Doctor

 ╭───────────────────────────╮
 │                           │
 │  NodeJS version: 22.14.0  │
 │  NPM version: 11.3.0      │
 │  CLI version: 3.2.1       │
 │  OS: macOS 26.0 (macOS)   │
 │                           │
 ╰───────────────────────────╯

Before submitting

  • I have read and followed the bug report guidelines.
  • I have attached links to possibly related issues and discussions.
  • I understand that incomplete issues (e.g. without reproduction) are closed.

Metadata

Metadata

Assignees

Labels

bug/fixSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions