CLI command
experiments
List adaptive experiments and their variants.
Invocation#
echo-cli experimentsInputs and output#
Writes experiments and variants arrays with status, weights, exposures, rewards, and timestamps; assignment subject identifiers and private variant config are not selected.
State effect#
The command performs bounded SELECTs from adaptive_experiments and adaptive_variants. It does not assign a subject, alter a weight, or graduate a variant.
Refusals#
- Without NEXT_PUBLIC_SUPABASE_URL it prints exactly "NEXT_PUBLIC_SUPABASE_URL is not configured" to stderr and exits 1.
- After the URL is present, without SUPABASE_SERVICE_ROLE_KEY it prints exactly "SUPABASE_SERVICE_ROLE_KEY is not configured" to stderr and exits 1.
- If Supabase refuses a SELECT, the CLI prints the returned database error message to stderr and exits 1.