What does DCli do?
Writing your first CLI app
Add DCli to your project
Dart lambda functions
stdin/stdout/stderr a primer
Using DCli functions
Managing Files And Directories
Command Line Arguments
The evils of CD
Use a shebang #!
build CLI apps in dart - part 1
build CLI apps in dart - part 2
Dealing with permissions
3rd Party console packages
Dart on Linux - the perfect CLI tooling
Improving your build environment
Olivier Revial - CLI apps made easy
Video: package of the week
The dcli pack command allows you to pack resources (images, config files etc) into your cli app.
Whilst flutter allows you to include assets in a dart executable no such feature exists for dart cli apps. The dcli pack command is designed to fill that void.
A resource is just a file that you want to ship with your package.
To pack a resource in you cli app create a 'resource' directory in the root of your project package.
Place each file in the resource directory.
For details on unpacking resources see the
DCli Tools - Previous
Next - DCli Tools