Skip to content

Commit 21bdd61

Browse files
authored
Add Example/README.md and update dependencies (#10)
1 parent bf3d4c8 commit 21bdd61

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

example/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
## Installation
2+
```sh
3+
dart pub global activate flutterflow_cli
4+
```
5+
6+
## How to use
7+
8+
Base command with required flags:
9+
```sh
10+
flutterflow export-code --project ProjectID --token APIToken
11+
```
12+
See [README](https://pub.dev/packages/flutterflow_cli) for the full list of available flags.
13+
14+
## Setting API Token Variable
15+
16+
Your API Token can be added as the environment variable `FLUTTERFLOW_API_TOKEN`. This means you don't have to manually pass the `--token` flag.
17+
18+
See your corresponding operating system guide:
19+
20+
* [MacOS](https://support.apple.com/en-gb/guide/terminal/apd382cc5fa-4f58-4449-b20a-41c53c006f8f/mac)
21+
* [Linux](https://linuxize.com/post/how-to-set-and-list-environment-variables-in-linux/#persistent-environment-variables)
22+
* [Windows](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_environment_variables?view=powershell-7.4#saving-environment-variables-with-the-system-control-panel)

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ environment:
1111
dependencies:
1212
archive: ^3.3.5
1313
args: ^2.3.0
14-
http: ^0.13.5
14+
http: ^1.1.0
1515
path: ^1.8.0
1616

1717
dev_dependencies:

0 commit comments

Comments
 (0)