Angularfire: use CI system --token flag on ng deploy

Created on 25 Jun 2020  路  6Comments  路  Source: angular/angularfire

*Angular:9.1.11*

*Firebase:7.15.4*

*AngularFire:6.0.2*

For Ci/CD want use Ci system of firebase-tools:
https://www.npmjs.com/package/firebase-tools#using-with-ci-systems

ng deploy is not possible to use --token flag

Steps to set up and reproduce

On bitbucket pipeline use --token flag
`ng deploy --token= $FIREBASE_TOKEN

Expected behavior

Deploying to firebase hosting,functions

Actual behavior

get error
Unknown option: '--token'

Most helpful comment

This API is now available in 6.1

All 6 comments

PR #2525

Hello angularFire team. I literally spend a ton of money in your app for my clients. At least answer us. It鈥檚 a shame that core features are broken.
It鈥檚 a shame you don鈥檛 manage the PR.
At least give us back the projets lead and we can manage it like a TRUE open source project.

work around:

 npm run build:staging 

 npx firebase deploy --token $npm_package_config_token

configure .firebaserc to use targets

any progress on this issue?

This API is now available in 6.1

After seeing that this was resolved, I tested ng deploy --token {TOKEN} and i still get "Unknown option: '--token'" . What am I doing wrong?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DennisSmolek picture DennisSmolek  路  3Comments

StephenFluin picture StephenFluin  路  3Comments

itisparas picture itisparas  路  3Comments

Leanvitale picture Leanvitale  路  3Comments

cre8 picture cre8  路  3Comments