LogoRevali

revali services

List the Revali services in a repository

revali services lists the Revali services in a repository without starting any of them. revali up and revali compose find services the same way, so use this command to check what they will include.

dart run revali services
3 service(s)

  orders    services/orders
  billing   services/billing
  users     services/users  (no Dockerfile yet)

(no Dockerfile yet) means the service has no .revali/build/Dockerfile, which revali compose needs. To create one, run revali build in that package with revali_docker installed.

What Counts as a Service#

A directory counts as a service when both of these are true:

  1. It has a pubspec.yaml and a routes/ directory.
  2. Its pubspec.yaml depends on revali_router or revali.

Search rules:

  • The search doesn't look inside a service for more services.
  • It skips .revali, .dart_tool, .git, build, node_modules and every directory whose name starts with a dot.
  • Results are sorted by path. revali up and revali compose assign ports in this order.

Options#

FlagDefaultDescription
--root <path> working directory Where to start looking for services.
--paths off Prints only the paths, one per line, with no header or color.
for service in $(dart run revali services --paths); do
  (cd "$service" && dart run revali build)
done

Exit Codes#

CodeMeaning
0At least one service was found.
1 The --root directory doesn't exist, or no services were found.