Project command
Manage and streamline your project with various tools and utilities.
eli project <sub-command>
The eli project
command is used for managing various aspects of your project. It provides a comprehensive set of tools to facilitate project management and streamline development processes.
build
Build a release version of your application, optimized for production deployment.
Usage: eli project build [arguments]
-h, --help Print this usage information.
--platform ▸ Which platform do you want to build for?
[ios, android, macos, windows, linux, web]
--service ▸ Which service do you want to build with?
[google, huawei]
--flavor ▸ Which flavor do you want to build?
[development, staging, production]
--build-type ▸ Which build type do you want to build?
[debug, profile, release]
--artifact ▸ Build artifact type
[apk, appbundle, ipa, ios, macos, web]
--export-options ▸ Export options for iOS
--web-renderer ▸ Which web renderer do you want to use?
[html, canvaskit, skwasm]
--[no-]web-use-wasm ▸ Use WebAssembly?
clean
Clean your project by removing unnecessary files and folders (e.g., pubspec_overrides.yaml
, .dart_tool/
, build/
), freeing up space and resolving common build issues.
Usage: eli project clean [arguments]
-h, --help Print this usage information.
-p, --[no-]pub-get ask to run `flutter pub get` after cleaning the project
(defaults to on)
flavor
licenses
Detect and display the licenses of all dependencies used in your project.
Usage: eli project licenses [arguments]
-h, --help Print this usage information.
--[no-]show-all Show transitive dependencies
--[no-]fail-on-copyleft fail on copylefted dependencies
--report [json, print (default)]
--output Report output file
(defaults to "reports/licences.json")
Command separates licenses by their allowance in the report. Define allowed AND OR rejected licenses in the Eli configuration file.
licences:
reject:
- 'GPL'
- 'GPL-1.0'
- 'MPL'
allowed:
- 'MIT'
- 'BSD'
- 'Apache'
If a set is not defined in the configuration then a default is used. The defaults are listed below.
Licence allowance
- Allowed
- MIT
- BSD
- BSD-1-Clause
- BSD-2-Clause-Patent
- BSD-2-Clause-Views
- BSD-2-Clause
- BSD-3-Clause-Attribution
- BSD-3-Clause-Clear
- BSD-3-Clause-LBNL
- BSD-3-Clause-Modification
- BSD-3-Clause-No-Military-License
- BSD-3-Clause-No-Nuclear-License-2014
- BSD-3-Clause-No-Nuclear-License
- BSD-3-Clause-No-Nuclear-Warranty
- BSD-3-Clause-Open-MPI
- BSD-3-Clause
- BSD-4-Clause-Shortened
- BSD-4-Clause-UC
- BSD-4-Clause
- BSD-Protection
- BSD-Source-Code
- Apache
- Apache-1.0
- Apache-1.1
- Apache-2.0
- Unlicense
- EIT
- Reject
- MPL
- LGPL
- AGPL
- MPL-1.0
- MPL-2.0
- GPL
- GPL-1.0
- GPL-2.0
- GPL-3.0
permissions
List all current permissions requested by your application, such as location, camera, or notifications.
Usage: eli project permissions [arguments]
-h, --help Print this usage information.
--[no-]ios Export ios permissions
(defaults to on)
--[no-]android Export android permissions
(defaults to on)
--[no-]show-all Show all permissions
--[no-]fail-on-rejected fail on rejected permission found
--report [json, print (default)]
--output Report otput file
(defaults to "reports/permissions.json")
--[no-]build All permissions from merged manifest files after build (android only)
(defaults to on)
--service ▸ Which service do you want to build with?
[google, huawei]
--flavor ▸ Which flavor do you want to build?
[development, staging, production]
--build-type build-type
[debug, profile, release]
services <sub-command>
Switch between different service dependencies, such as Google Play Services or Huawei Mobile Services, depending on your target platform.
get
Usage: eli project services get [arguments]
-h, --help Print this usage information.
google
Usage: eli project services google [arguments]
-h, --help Print this usage information.
-f, --[no-]force Force the command to run.
huawei
Usage: eli project services huawei [arguments]
-h, --help Print this usage information.
-f, --[no-]force Force the command to run.
bootstrap
Prepare your project environment for development by setting up necessary configurations and dependencies.
Usage: eli project bootstrap [arguments]
-h, --help Print this usage information.
--flutter-version Use flutter version
--[no-]auth Check Azure authorization
(defaults to on)
--[no-]allow-no-subscriptions Support access tenants without subscriptions. It's uncommon but useful to run tenant level commands, such as 'az ad'.
--dir Directory name
secrets
Manage application secrets such as API keys and other sensitive information.
Usage: eli project secrets [arguments]
-h, --help Print this usage information.
sync
Usage: eli project sync [arguments]
-h, --help Print this usage information.
token
Add a token for accessing private EIT repositories.
Usage: eli project token [arguments]
-h, --help Print this usage information.
--token Your access token for private repository
coverage
Display the overall test coverage percentage for your codebase, helping track the coverage of your tests.
Usage: eli project coverage [arguments]
-h, --help Print this usage information.
--min Minimum coverage
--[no-]fix Fix imports to fix coverage
fix-coverage
Identify and fix issues related to test coverage to ensure all parts of your codebase are adequately tested.
Usage: eli project fix-coverage [arguments]
-h, --help Print this usage information.