firebase target:apply hosting my-site my-site-id

Category: Firebase & Firestore

firebase target:apply hosting my-site my-site-id

Map a deploy target to resources

Binds the target name my-site to the Hosting site my-site-id for the active project, then writes the mapping to .firebaserc. Afterward, firebase deploy --only hosting:my-site deploys to that site. Run firebase target hosting to verify the mapping.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.