Skip to content

Add cli flagsAdd CLI flags to support non-interactive app creation#190

Open
Aditya-vegi wants to merge 2 commits intoRocketChat:masterfrom
Aditya-vegi:add-cli-flags
Open

Add cli flagsAdd CLI flags to support non-interactive app creation#190
Aditya-vegi wants to merge 2 commits intoRocketChat:masterfrom
Aditya-vegi:add-cli-flags

Conversation

@Aditya-vegi
Copy link

Description

Adds support for CLI flags (--type and --category) to allow non-interactive app creation, enabling automation and scripting scenarios.

Problem

Currently the CLI is fully interactive:

  • No way to automate app creation
  • Scripts/CI pipelines can't use it
  • Similar to modern CLI tools that support both modes

Solution

Added optional flags:

  • --type (or -t): App type (chatbot/integration)
  • --category (or -c): App category (chatbot/integration/other)

If flags provided → uses them (non-interactive)
If flags absent → falls back to prompts (interactive)

Changes

  • Added 2 new flags to static flags definition
  • Moved flag parsing before prompts
  • Updated appType prompt to use flag if provided
  • Added appCategory prompt with same pattern
  • Maintains backward compatibility

Type of Change

  • New feature (non-breaking)

Usage Examples

Interactive (existing):

rc-apps create

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant