diff --git a/CHANGELOG.md b/CHANGELOG.md index d2a4547f5..df9077ecd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [9.2.3] - 2024-10-09 +- Adds support for `--with-temp-dir` in CLI and `tempDirLocation=` in Core - Adds validation to firstFactors and requiredSecondaryFactors names while creating tenants/apps/etc. to not allow special chars. diff --git a/cli/src/main/java/io/supertokens/cli/commandHandler/start/StartHandler.java b/cli/src/main/java/io/supertokens/cli/commandHandler/start/StartHandler.java index 645608dd6..5bf579567 100644 --- a/cli/src/main/java/io/supertokens/cli/commandHandler/start/StartHandler.java +++ b/cli/src/main/java/io/supertokens/cli/commandHandler/start/StartHandler.java @@ -35,6 +35,7 @@ public class StartHandler extends CommandHandler { public void doCommand(String installationDir, boolean viaInstaller, String[] args) { String space = CLIOptionsParser.parseOption("--with-space", args); String configPath = CLIOptionsParser.parseOption("--with-config", args); + String tempDirLocation = CLIOptionsParser.parseOption("--with-temp-dir", args); if (configPath != null) { configPath = new File(configPath).getAbsolutePath(); } @@ -67,6 +68,9 @@ public void doCommand(String installationDir, boolean viaInstaller, String[] arg if (forceNoInMemDB) { commands.add("forceNoInMemDB=true"); } + if(tempDirLocation != null && !tempDirLocation.isEmpty()) { + commands.add("tempDirLocation=" + tempDirLocation); + } } else { commands.add(installationDir + "jre/bin/java"); commands.add("-Djava.security.egd=file:/dev/urandom"); @@ -90,6 +94,9 @@ public void doCommand(String installationDir, boolean viaInstaller, String[] arg if (forceNoInMemDB) { commands.add("forceNoInMemDB=true"); } + if(tempDirLocation != null && !tempDirLocation.isEmpty()) { + commands.add("tempDirLocation=" + tempDirLocation); + } } if (!foreground) { try { @@ -172,6 +179,8 @@ protected List