@@ -748,6 +748,25 @@ def demo(self):
748748
749749 return 0
750750
751+ def dashboard (self ):
752+ """Launch the real-time system monitoring dashboard"""
753+ try :
754+ from cortex .dashboard import DashboardApp
755+
756+ app = DashboardApp ()
757+ app .run ()
758+ return 0
759+ except ImportError as e :
760+ self ._print_error (f"Dashboard dependencies not available: { e } " )
761+ cx_print ("Install required packages with:" , "info" )
762+ cx_print (" pip install psutil pynvml" , "info" )
763+ return 1
764+ except KeyboardInterrupt :
765+ return 0
766+ except Exception as e :
767+ self ._print_error (f"Dashboard error: { e } " )
768+ return 1
769+
751770
752771def show_rich_help ():
753772 """Display beautifully formatted help using Rich"""
@@ -821,6 +840,9 @@ def main():
821840 # Demo command (first - show this to new users)
822841 demo_parser = subparsers .add_parser ('demo' , help = 'See Cortex in action (no API key needed)' )
823842
843+ # Dashboard command
844+ dashboard_parser = subparsers .add_parser ('dashboard' , help = 'Real-time system monitoring dashboard' )
845+
824846 # Wizard command
825847 wizard_parser = subparsers .add_parser ('wizard' , help = 'Configure API key interactively' )
826848
@@ -869,6 +891,8 @@ def main():
869891 try :
870892 if args .command == 'demo' :
871893 return cli .demo ()
894+ elif args .command == 'dashboard' :
895+ return cli .dashboard ()
872896 elif args .command == 'wizard' :
873897 return cli .wizard ()
874898 elif args .command == 'status' :
0 commit comments