Skip to main content

Robusta Command Line

1. Add

Not all the extensions are added by defult. The following command helps us quickly add any available extensions

robusta add [extension_name]

add-command

2. Gen

Robusta also supports generating boilerplate code.

Current Robusta offers 2 types of generation:

  • Repository
  • Screen
robusta generate [type] [name]

generate-command

When generating Repository, you can choose either GraphQL or Dio to suit your usecase.

Similar to Repository, Screen will also give you 2 options to choose from: Normal and Shell

Shell screen is basically a big wrapper for any subscreens inside.

info

You can think Shell screen is just like Fragments in Android, or Layout - [Header and Footer] in Web

3. New

To create a completely new flutter Project

robusta new [project name]

hello_robusta

4. Self-update

Update new version of Robusta CLI

robusta self-update

5. Version

Check the current version of Roubusta CLI

robusta version