Getting Started
Kick off your first project using the Eli CLI.
Follow these steps to quickly set up and start working on your new Flutter project using the Eli CLI.
1. Activate eli
Tool
To activate eli
, you must first gain access to the pub repository on Gitea. Please reach out Admin for getting access token.
To get started, activate the eli
by running the following command:
dart pub global activate eli -u https://gitea.whitelabel.mobile.embedit.dev/api/packages/platform/pub/
2. Create a New Empty App
Next, create an empty app using the eli
:
eli create app
When prompted, provide answers to the setup questions based on your specific needs.
This guide will proceed using those responses:
What is the name of the project? (my_app) my_app
The organization name (com.embedit) com.embedit
The application id on Android, Bundle ID on iOS ... omitted
Short project description (App generated by EIT) App generated by EIT
The output directory? (.) .
Is this an Azure project? (Y/n) No
3. Navigate to the New App Directory
Change your working directory to the newly created app:
cd my_app
4. Bootstrap the App
Initialize and configure the project by bootstrapping it:
eli project bootstrap
If everything is correct, the eli
will display all green checkmarks.
5. Run the App in VSCode
Open the project in Visual Studio Code (VSCode) and run the app to ensure everything is set up correctly.
eli
configures VS Code's launch.json
, so you can simply run the app using the green play button.
Conclusion
You have now successfully set up your project. Continue developing your app by adding features and customizing it to your needs!
You can explore eli
capabilities by running the following command:
eli --help