You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+35Lines changed: 35 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,12 +37,47 @@ on this path: `.dart_tool/pub/bin/flutterfire_cli_monorepo/*.snapshot`. This wil
37
37
38
38
## Install
39
39
40
+
### Global Installation
41
+
40
42
To install, run the following command:
41
43
42
44
```bash
43
45
dart pub global activate flutterfire_cli
44
46
```
45
47
48
+
### Dev Dependency (Beta)
49
+
50
+
It is now possible to install as a dev dependency:
51
+
52
+
```bash
53
+
dart pub add --dev flutterfire_cli
54
+
```
55
+
**important** - remember to deactivate your current global installation of `flutterfire_cli`.
56
+
57
+
To run flutterfire commands from your dev dependency:
58
+
59
+
```bash
60
+
dart run flutterfire_cli:flutterfire [COMMAND]
61
+
```
62
+
63
+
It might be worth creating an alias in your shell of choice, if you're using zsh shell, it might look like:
64
+
65
+
```bash
66
+
echo'alias flutterfire="dart run flutterfire_cli:flutterfire"'>>~/.zshrc
67
+
```
68
+
69
+
This will allow you to run commands like previously from within your Flutter app:
70
+
71
+
```bash
72
+
flutterfire configure
73
+
```
74
+
75
+
Remember to update or open a new terminal window so alias change is applied.
76
+
77
+
This feature is in Beta, if you find any bugs, please file a new issue on the repo.
78
+
79
+
#### Installation Requirements for Global and Dev Dependency
80
+
46
81
- FlutterFire CLI requires the Firebase CLI (`firebase-tools`) to be installed on your local machine, [follow these instructions](https://firebase.google.com/docs/cli) for installation.
47
82
- If you're running on a windows machine, we highly recommend you install via npm (i.e. `npm install -g firebase-tools`). The standalone
48
83
`firebase-tools` version can cause problems which you can read about [here](https://github.com/invertase/flutterfire_cli/issues/55#issuecomment-1316201478).
0 commit comments