CLI - reflex

reflex


The reflex group generates and runs Reflex applications. Use it to scaffold a new Reflex app in your brick and to run an existing app in development mode with auto-reload. The init command is an alias of generate.



reflex run


Runs a Reflex app in development mode from its JSON config file. The app is started with dev mode enabled so you can iterate on it locally with auto-reload.


gws reflex run 



# Run a Reflex app from its config file
gws reflex run ./my_reflex_app/app_config.json

reflex generate


Scaffolds a new Reflex app. Pass the app name in snake_case. Optionally generate an enterprise app and choose a virtual environment to run it in.


gws reflex generate  [OPTIONS]


# Generate a plain Reflex app
gws reflex generate my_reflex_app

# Generate an enterprise app that runs in a conda environment
gws reflex generate my_reflex_app --enterprise --env CONDA

reflex init


Alias for reflex generate. It takes the same argument and options and produces the same result — use whichever name you prefer.


gws reflex init  [OPTIONS]


# Same as 'reflex generate'
gws reflex init my_reflex_app --env PIP
Shine Logo
Technical bricks to reuse or customize

Have you developed a brick?

Share it to accelerate projects for the entire community.