Commands automatically run an unpinned latest npm package
Source references: 3Every command uses `npx -y firebase-tools@latest`. The `latest` target can change whenever the publisher releases a version, while `-y` automatically accepts installation, so the executed code is not fixed to a reviewed release.
If the upstream package, publisher account, or a new release is compromised, the command could run malicious code with the user's permissions, read local files or Firebase credentials, and affect logged-in cloud projects.
These are directly executable commands. `npx -y` skips installation confirmation, while `@latest` does not pin a version, so different Firebase CLI code may be downloaded and run over time. This is a common way to invoke an official CLI temporarily, but it exposes the machine and available Firebase credentials to whatever package npm serves as latest. A user can ask for a pinned, reviewed version or restrict automatic installation and network access.
```bashnpx -y firebase-tools@latest emulators:start --only hosting```Show 2 other places
```bashnpx -y firebase-tools@latest deploy --only hosting``````bashnpx -y firebase-tools@latest hosting:channel:deploy CHANNEL_ID```