stem_cli 0.1.0-alpha.3  stem_cli: ^0.1.0-alpha.3 copied to clipboard
stem_cli: ^0.1.0-alpha.3 copied to clipboard
Command-line tooling for Stem that orchestrates Redis and Postgres adapters.
stem_cli #
Command-line tooling for the Stem runtime. The CLI depends on the core package
plus adapter plug-ins (stem_redis, stem_postgres).
Install #
dart pub global activate stem_cli
Ensure the activation directory is on your PATH:
export PATH="$HOME/.pub-cache/bin:$PATH"
stem --help
Adapter Support #
Out of the box the CLI knows how to talk to the Redis and Postgres adapters
provided by stem_redis and stem_postgres. Custom adapters can be supported by
wrapping the CLI context builders (see src/cli/utilities.dart).
Local Integration Stack #
The package includes the docker compose stack used by integration suites. Start Redis/Postgres plus TTL CA certificates with:
docker compose -f docker/testing/docker-compose.yml up -d postgres redis
or source the helper script to export integration environment variables:
source ./_init_test_env
Tests #
Run the CLI unit tests with:
dart test
Integration suites auto-skip when the docker services are unavailable. Set
STEM_CLI_RUN_MULTI=true to enable the worker multi command smoke test.