web-dev-qa-db-fra.com

Comment savoir quelle est la version actuelle des outils Firebase

À partir de l'invite de commande node.js, en utilisant:

$ firebase help

donne cette liste:

Usage: firebase [options] [command]

Options:
--------


 - -V, --version - output the version number
 - -P, --project <alias_or_project_id> - the Firebase project to use for this command
 - -j, --json - output JSON instead of text, also triggers non-interactive mode   --token <token> - supply an auth token for
   this command
 - --non-interactive - error out of the command instead of waiting for prompts
 - --interactive - force interactive Shell treatment even when not detected
 - --debug - print verbose debug output and keep a debug log file
 - -h, --help - output usage information

Commands:
---------

 - auth:import [options] [dataFile]           import users into your
   Firebase project from a data file(.csv or .json)
 - auth:export [options] [dataFile]           Export accounts from your
   Firebase project into a data file
 - database:get [options] <path>              fetch and print JSON data
   at the specified path
 - database:Push [options] <path> [infile]    add a new JSON object to a
   list of data in your Firebase
 - database:set [options] <path> [infile]     store JSON data at the
   specified path via STDIN, arg, or file
 - database:remove [options] <path>           remove data from your
   Firebase at the specified path
 - database:update [options] <path> [infile]  update some of the keys
   for the defined path in your Firebase
 - database:profile [options]                 profile the Realtime
   Database and generate a usage report
 - firestore:delete [options] [path]          Delete data from Cloud
   Firestore.
 - firestore:indexes [options]                List indexes in your
   project's Cloud Firestore database.
 - deploy [options]                           deploy code and assets to
   your Firebase project
 - hosting:disable [options]                  stop serving web traffic
   to your Firebase Hosting site
 - functions:log [options]                    read logs from deployed
   functions
 - functions:Shell [options]                  launch full Node Shell
   with emulated functions
 - functions:config:clone [options]           clone environment config
   from another project
 - functions:config:get [path]                fetch environment config
   stored at the given path
 - functions:config:set [values...]           set environment config
   with key=value syntax
 - functions:config:unset [keys...]           unset environment config
   at the specified path(s)
 - functions:delete [options] [filters...]    delete one or more Cloud
   Functions by name or group name.
 - experimental:functions:Shell [options]     launch full Node Shell
   with emulated functions. (Alias for `firebase functions:Shell.)
 - help [command]                             display help information
 - init [feature]                             setup a Firebase project
   in the current directory
 - list                                       list the Firebase projects
   you have access to
 - login [options]                            log the CLI into Firebase
 - login:ci [options]                         generate an access token
   for use in non-interactive environments
 - logout                                     log the CLI out of
   Firebase
 - open [link]                                quickly open a browser to
   relevant project resources
 - serve [options]                            start a local server for
   your static assets
 - setup:web                                  display this project's
   setup information for the Firebase JS SDK
 - setup:emulators:database                   downloads the database
   emulator
 - setup:emulators:firestore                  downloads the firestore
   emulator
 - target [type]                              display configured deploy
   targets for the current project
 - target:apply <type> <name> <resources...>  apply a deploy target to a
   resource
 - target:clear <type> <target>               clear all resources from a
   named resource target
 - target:remove <type> <resource>            remove a resource target
 - tools:migrate [options]                    ensure your firebase.json
   format is up to date
 - use [options] [alias_or_project_id]        set an active Firebase
   project for your working directory

Pour obtenir de l'aide sur une commande spécifique, tapez aide firebase [nom_commande]

$ firebase -V

Donne un numéro de version, mais je ne sais pas s'il s'agit du numéro de version des outils Firebase.

La seule commande pour les outils est:

outils: migrer [options]

À savoir: vous assurer que votre format firebase.json est à jour

Comment obtenir la version actuelle des outils Firebase?

4
Alan Wells

Pour mettre à niveau les outils Firebase vers la dernière version, exécutez:

npm upgrade firebase-tools -g

Les drapeaux -V et --version affiche le numéro de version des outils firebase.

5
Frank van Puffelen

Essayez de courir:

 firebase tools --version
5
Fakebounce

Courir firebase tools --version pour vérifier la version.

Et conformément à l'invite, exécutez npm install -g firebase-tools mettre à jour.

enter image description here

Mise à jour

Vous avez raison. Il semble qu'il corresponde aux numéros de version de cette bibliothèque , mais pas à un autre.

2
FiringBlanks

Nouvelle réponse le 1 décembre 2019

Faites simplement firebase --version il vous donnera le numéro de version enter image description here

0
Sky