@nmakarov/cli-toolkit 0.57.0 → 0.61.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2883,6 +2883,12 @@ var Db = class _Db {
2883
2883
  }
2884
2884
  if (!dbConnectionString) {
2885
2885
  if (!dbName) {
2886
+ const env = context?.args?.env;
2887
+ if (env && String(env).toLowerCase() !== "local") {
2888
+ throw new ParamError(
2889
+ `Db: dbName not set for env="${env}" (set --dbName or DB_NAME_${String(env).toUpperCase()})`
2890
+ );
2891
+ }
2886
2892
  dbName = "local";
2887
2893
  }
2888
2894
  const paramName = `dbConnectionString${capitalizeFirstLetter(dbName)}`;