{"record":{"id":"f49e46bdc24f085d","repo":"abpframework/abp","slug":"please-login-with-your-account","errorCode":null,"errorMessage":"Please login with your account.","messagePattern":"Please login with your account\\.","errorType":"exception","errorClass":"CliUsageException","httpStatus":null,"severity":"error","filePath":"framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/SuiteCommand.cs","lineNumber":64,"sourceCode":"        SuiteAppSettingsService suiteAppSettingsService)\n    {\n        CmdHelper = cmdHelper;\n        _nuGetIndexUrlService = nuGetIndexUrlService;\n        _packageVersionCheckerService = packageVersionCheckerService;\n        _authService = authService;\n        _cliHttpClientFactory = cliHttpClientFactory;\n        _suiteAppSettingsService = suiteAppSettingsService;\n        Logger = NullLogger<SuiteCommand>.Instance;\n    }\n\n    public async Task ExecuteAsync(CommandLineArgs commandLineArgs)\n    {\n#if !DEBUG    \n        var loginInfo = await _authService.GetLoginInfoAsync();\n\n        if (string.IsNullOrEmpty(loginInfo?.Organization))\n        {\n            throw new CliUsageException(\"Please login with your account.\");\n        }\n#endif\n        \n        var operationType = NamespaceHelper.NormalizeNamespace(commandLineArgs.Target);\n\n        var preview = commandLineArgs.Options.ContainsKey(Options.Preview.Short) ||\n                      commandLineArgs.Options.ContainsKey(Options.Preview.Long);\n\n        var version = commandLineArgs.Options.GetOrNull(Options.Version.Short, Options.Version.Long);\n        var currentSuiteVersionAsString = GetCurrentSuiteVersion();\n\n        switch (operationType)\n        {\n            case \"\":\n            case null:\n                await InstallSuiteIfNotInstalledAsync(currentSuiteVersionAsString);\n                _abpSuitePort = await _suiteAppSettingsService.GetSuitePortAsync(currentSuiteVersionAsString);\n                RunSuite(commandLineArgs);","sourceCodeStart":46,"sourceCodeEnd":82,"githubUrl":"https://github.com/abpframework/abp/blob/7ed43b1931b9df46a50c0c59148a18645641d0df/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/SuiteCommand.cs#L46-L82","documentation":"Thrown by SuiteCommand.ExecuteAsync when _authService.GetLoginInfoAsync() returns a login info whose Organization property is null or empty. ABP Suite is a commercial product requiring authentication with a valid ABP account tied to an organization with an active license. This check is skipped in DEBUG builds (#if !DEBUG), so it only fires in release/production CLI builds.","triggerScenarios":"Running any 'abp suite' subcommand (install, update, remove, generate, or bare launch) while the CLI authentication state has no organization. This means either the user never ran 'abp login', the session expired, or the account has no commercial license organization associated.","commonSituations":"First-time use without 'abp login', expired session token (tokens have a lifetime), account without an active ABP Commercial license, using a community/free account that lacks Suite access.","solutions":["Run 'abp login' and enter your ABP Commercial account credentials","Verify your account has an active ABP Commercial license at abp.io > Account > Licenses","If already logged in but still failing, run 'abp logout' then 'abp login' again to refresh the token","Check that the organization associated with your account has Suite enabled"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"// Pre-check authentication before running Suite commands\n#if !DEBUG\nvar loginInfo = await _authService.GetLoginInfoAsync();\nif (string.IsNullOrEmpty(loginInfo?.Organization))\n{\n    Console.Error.WriteLine(\"Not logged in. Run 'abp login' first.\");\n    return;\n}\n#endif","typeGuard":null,"tryCatchPattern":"try\n{\n    await suiteCommand.ExecuteAsync(commandLineArgs);\n}\ncatch (CliUsageException ex) when (ex.Message.Contains(\"Please login\"))\n{\n    Console.Error.WriteLine(\"Authentication required. Run: abp login\");\n    Environment.Exit(1);\n}","preventionTips":["Run 'abp login' at the start of each development session","Verify your ABP Commercial license is active before using Suite","If sessions expire frequently, script 'abp login' into your environment setup","Check that your account is associated with an organization in the ABP.IO portal"],"tags":["suite","authentication","cli","commercial","license"],"backgroundTag":null,"analyzedSha":"7ed43b1931b9df46a50c0c59148a18645641d0df","analyzedAt":"2026-08-13T16:26:11.351Z","schemaVersion":2},"datasetVersion":"2026-08-13T19:17:28.613Z"}