Skip to content

astro add Still Prompts for Input Despite --yes Flag #13399

Closed
@gregidonut

Description

@gregidonut

Astro Info

Astro                    v5.4.3
Node                     v22.5.1
System                   Linux (x64)
Package Manager          npm
Output                   static
Adapter                  none
Integrations             none

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

i'm trying to avoid the interactive screen when doing adding an astro integration
this doesn't work
when doing

npx astro add --help

i get this output

  astro add [...integrations] [...adapters]

   Flags 
      --yes  Accept all prompts.
      --help  Show this help message.
    ...

but it still prompts me

npx astro add astro-compressor --yes                
⚠ astro-compressor is not an official Astro package.
? Continue? › (Y/n)

is it because it's a community integration?

ps i can't really reproduce it with StackBlitz coz nothing actually gets installed, the problem is i want to get rid of the interactive screen when installing an integration

What's the expected result?

no prompt when using the --yes flag with astro add

Link to Minimal Reproducible Example

https://stackblitz.com/github/withastro/astro/tree/latest/examples/minimal?file=README.md

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

Labels

- P3: minor bugAn edge case that only affects very specific usage (priority)feat: addRelated to `astro add` CLI command (scope)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions