init: accept unambiguous app path and basename aliases for --app

Open
#1,419 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
typescript
Domain
cli

Research direction

Start by locating the init command's existing --app selection logic and its tests. Trace how discovered app names and paths are compared, then cover exact-name precedence, normalized full paths, unique basenames, nested paths, and duplicate-basename errors. Done means ambiguous matches list all matching paths and matching remains limited to discovered apps.

Written by the indexing model from the issue text.

Description

enhancement

Problem

Non-interactive monorepo selection can require the exact discovered display name. Common inputs such as --app apps/api or --app api fail when the discovered name differs, even when the target is unambiguous.

This behavior was bundled into draft PR #1418, but it is independent from existing-Sentry detection and should be handled separately.

Expected behavior

  • Prefer an exact app name or exact normalized full path.
  • Accept a unique path basename as an alias.
  • If a basename matches multiple apps, fail and list the matching paths instead of choosing one.
  • Keep path matching scoped to the discovered apps.
  • Cover nested paths, duplicate basenames, and exact-match precedence in tests.
Dominant language
TypeScript
Stars
121
Forks
14
Avg merge
22h 3m
Merged PRs (30d)
94

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from getsentry/cli

All issues in getsentry/cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.