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:
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
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
- When running locally (none of the providers detected by std-env lib)
- Run
npx @capawesome/cli apps:bundles:create --app-id xxx --channel ""
- 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
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:so I was trying to do the same but running the CLI from a custom
.shscript locally on my machine. I tried setting an empty--channellike this:npx @capawesome/cli apps:bundles:create --app-id xxx --channel ""but then I get
ERROR Invalid input: expected string, received booleanExpected behavior
It should accept an empty string as the
--channeloption, 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
providersfor whichisCiistruefrom std-env libSteps to reproduce
npx @capawesome/cli apps:bundles:create --app-id xxx --channel ""Invalid input: expected string, received booleanOther information
No response
Doctor
Before submitting