Skip to content

Commit 18131e4

Browse files
authored
Merge pull request #177 from FlutterFlow/pinkesh/cli-tag-environment
Added Environment Command Option
2 parents a32dc35 + 8537209 commit 18131e4

File tree

1 file changed

+21
-6
lines changed
  • docs/testing-deployment-publishing/exporting-code

1 file changed

+21
-6
lines changed

docs/testing-deployment-publishing/exporting-code/ff-cli.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,27 @@ To use the CLI, you'll need to create an API token and use it in your requests.
6464

6565
| Flag | Behavior | Default |
6666
| --- | --- | --- |
67-
| --dest / -d | Specifies a destination folder other than the current directory | Current directory |
68-
| --[no]-include-assets | Option to download assets (images, GIFs). Useful for consecutive code exports if the assets folder hasn't changed | False |
69-
| --branch-name / -b | Downloads from a specific branch | Main |
70-
| --[no]-fix | Option to run dart fix on the code after downloading | False |
71-
| --[no]-parent-folder | Option to download the code into a subfolder instead of directly into the directory | False |
67+
| --dest / -d | Specifies a destination folder other than the current directory. | Current directory |
68+
| --[no]-include-assets | Option to download assets (images, GIFs). Useful for consecutive code exports if the assets folder hasn't changed. | False |
69+
| --branch-name / -b | Downloads from a specific branch. | Main |
70+
| --[no]-fix | Option to run dart fix on the code after downloading. | False |
71+
| --[no]-parent-folder | Option to download the code into a subfolder instead of directly into the directory. | False |
72+
| --[no]-as-module | Whether to generate the project as a Flutter module. | False |
73+
| --[no]-as-debug | Whether to generate the project with debug logging to be able to use FlutterFlow Debug Panel inside the DevTools. | False |
74+
| --project-environment | Which [development environment](../development-environments/development-environments.md) to be used. If empty, the current environment in the project will be downloaded. | Current environment |
7275

7376
## Filtered exports
7477

75-
We've developed [a solution](https://github.com/krabhishek/flutterflow-filtered-pull) that allows you to use the CLI tool without overwriting specific files or directories. This is especially useful if you're managing code outside of FlutterFlow and want to prevent it from being overwritten during a code export.
78+
We've developed [a solution](https://github.com/krabhishek/flutterflow-filtered-pull) that allows you to use the CLI tool without overwriting specific files or directories. This is especially useful if you're managing code outside of FlutterFlow and want to prevent it from being overwritten during a code export.
79+
80+
## FAQ
81+
<details>
82+
<summary>I am getting an error as FormatException: Missing argument for…</summary>
83+
<p>
84+
This error likely indicates that you haven't correctly entered the command option along with its value. Double-check that all required information has been entered. If everything is correct and you're still encountering the error, it might be due to using an outdated version of the FlutterFlow CLI. To resolve this, you can update to the latest version by running the installation command:
85+
```
86+
dart pub global activate flutterflow_cli
87+
```
88+
This should update the CLI and fix the issue.
89+
</p>
90+
</details>

0 commit comments

Comments
 (0)