diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Auth/AuthService.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Auth/AuthService.cs index 8695c0c418e..333ae59e3f7 100644 --- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Auth/AuthService.cs +++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Auth/AuthService.cs @@ -85,7 +85,11 @@ public async Task LoginAsync(string userName, string password, string organizati } var accessToken = await AuthenticationService.GetAccessTokenAsync(configuration); - + + if (!Directory.Exists(CliPaths.Root)) + { + Directory.CreateDirectory(CliPaths.Root); + } File.WriteAllText(CliPaths.AccessToken, accessToken, Encoding.UTF8); }