Skip to content

firebase emulators:export doesn't support / warn about --only #4033

Closed

Description

@ggirotto

[REQUIRED] Environment info

firebase-tools: 10.1.2

Platform: macOS 12.1

[REQUIRED] Steps to reproduce

  1. Start emulators suite
  2. Run firebase emulators:export --only firestore

[REQUIRED] Expected behavior

Only firestore metadata should be exported.

[REQUIRED] Actual behavior

Other metadata - auth as an example - is exported as well. The --only flag seems to be ignored/not used

Logs when running with --debug

[2022-01-21T17:48:32.520Z] >>> HTTP REQUEST GET http://localhost:4400/

[2022-01-21T17:48:32.550Z] <<< HTTP RESPONSE 200 {"x-powered-by":"Express","vary":"Origin","content-type":"application/json; charset=utf-8","content-length":"51","etag":"W/"33-cqbzNA/eKm0XcA5dWyWSdlXsGtQ"","date":"Fri, 21 Jan 2022 17:48:32 GMT","connection":"keep-alive","keep-alive":"timeout=5"}
i Found running emulator hub for project <PROJECT_ID> at http://localhost:4400
? The directory /Users//a already contains export data. Exporting again to the same directory
will overwrite all data. Do you want to continue? Yes
i Exporting data to: /Users//a
[2022-01-21T17:48:35.915Z] >>> HTTP REQUEST POST http://localhost:4400/_admin/export
{"path":"/Users//a"}
[2022-01-21T17:48:35.950Z] <<< HTTP RESPONSE 200 {"x-powered-by":"Express","vary":"Origin","content-type":"application/json; charset=utf-8","content-length":"16","etag":"W/"10-MxB4y4MLcx6QDsp8b8vgp7iFMFo"","date":"Fri, 21 Jan 2022 17:48:35 GMT","connection":"keep-alive","keep-alive":"timeout=5"}

Activity

  1. google-oss-bot commented on Jan 21, 2022

    @google-oss-bot
    Collaborator

    This issue does not seem to follow the issue template. Make sure you provide all the required information.

  2. changed the title [-]`firebase emulators:export` doesn't use `--force` flag[/-] [+]`firebase emulators:export` ignores `--force` flag[/+] on Jan 21, 2022
  3. changed the title [-]`firebase emulators:export` ignores `--force` flag[/-] [+]`firebase emulators:export` doesn't support / warn about `--only`[/+] on Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions