FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
130 stars 26 forks source link

Could not find an option named "project-environment" #4796

Closed brunoconceicao closed 3 weeks ago

brunoconceicao commented 3 weeks ago

Can we access your project?

Current Behavior

Hi everyone,

when I try to download the application with the code generated in the flutterflow cli, I get this error

FormatException: Could not find an option named "project-environment".

I created another environment called Homolog and it has an environment variable

Expected Behavior

Download code

Steps to Reproduce

  1. Click em developer menu
  2. Copy FlutterFlow cli command
  3. In a folder I open the terminal and paste the cli code and press enter

Reproducible from Blank

Bug Report Code (Required)

ITFXl/LYyIhisshE+c72ce1ogiUwGUwbUOc7j9VEGAsjCePxOooqZc7RU1ttcuqHdFZXM1KYuFoz+NbuufGfUfZdNQ2bfYhJ1c91UxDvWnu6Vqq4OpG0WHxtEcdhfxWy1MGwkQlTIvRZLU4d2E2IFfOQb3qCf9qOYwx5e6fDbOY=

Visual documentation

Captura de tela 2024-10-30 115614

Environment

- FlutterFlow version: 5.0.9+
- Platform: 3.24.2
- Browser name and version: Windows Application and Google Chrome
- Operating system and version affected: Windows 11

Additional Information

No response

Alezanello commented 3 weeks ago

Hello!

Could you confirm if you have the latest version of the FlutterFlow CLI installed?

dart pub global activate flutterflow_cli

If so, the command should be as follows:

flutterflow export-code --project [PROJECT_ID] --project-environment [ENV_NAME] --include-assets --token [API_TOKEN]

Let us know if you have any questions!

brunoconceicao commented 3 weeks ago

Work, tks!!!!