Search…
Introduction
What does DCli do?
Install DCli
Writing your first CLI app
Add DCli to your project
pub.dev
github
Dart basics
Dart lambda functions
Function Arguments
Futures
stdin/stdout/stderr a primer
Tour
Overview
Using DCli functions
User input
Displaying information
Managing Files And Directories
Environment variables
Calling apps
Command Line Arguments
Paths
Glob Expansion
Piping
Locking
Fetch
The evils of CD
Assets/Resources
Cross Platform
Elevated Privileges
Performance
Dependency Management
Dependency Management
Pubspec Managment
DCli Tools
DCli tools
Use a shebang #!
DCli Compile
DCli Clean
DCli Create
DCli Doctor
DCli Install
DCli Run
DCli Warmup
DCli Pack
Upgrade DCli
Internal Workings
Internal Workings
waitForEx
Contributing
References
Examples
Projects
Code
Articles
build CLI apps in dart - part 1
build CLI apps in dart - part 2
Dealing with permissions
Dart on Linux - the perfect CLI tooling
Improving your build environment
Olivier Revial - CLI apps made easy
Video: package of the week
Powered By
GitBook
Dependency Management
Dependency Management
Dart has a large collection of built in packages. You can read about the core packages at:
​
https://dart.dev/guides/libraries/library-tour
​
However, sometimes you need a specialised package.
There are thousands of third party packages that you can use in your DCli scripts which can be found at:
​
https://pub.dev/packages
​
NOTE: you can't use Flutter or web packages in your DCli scripts.
To use an external package you need to add it as a dependency to your script.
Dart's dependency management is done via a pubspec.yaml file.
Each package includes install instructions which is simply a matter of adding a dependency line to your pubspec and running:
dcli prepare
.
Previous
Performance
Next - Dependency Management
Pubspec Managment
Last modified
7mo ago
Copy link