The cli_tools repository contains open-source packages that help you build CLI commands.
They are actively maintained and used by the Serverpod team.
The cli_tools package offers several utilities for CLI development, for example: terminal logging, user-input prompting, and usage-analytics collection.
The config package provides comprehensive configuration ingestion and validation, including typed command line options, environment variables, and configuration files as input, and better error reporting.
To contribute to cli_tools, see the contribution guidelines.
This repo uses melos to aid in development, test, and publishing.
After cloning the repo, run melos bootstrap
(or melos bs
) to initialize it
(this will also run dart pub get
).
Run melos test
to run all the tests.