lua-cli 2.5.2 → 2.5.4

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.
package/CLI_REFERENCE.md CHANGED
@@ -501,6 +501,96 @@ Press `Ctrl+C` to stop the file watcher and server.
501
501
 
502
502
  ---
503
503
 
504
+ ### `lua admin`
505
+
506
+ Opens the Lua Admin Dashboard in your default browser.
507
+
508
+ **Usage:**
509
+ ```bash
510
+ lua admin
511
+ ```
512
+
513
+ **What it does:**
514
+ 1. Loads your API key from secure storage
515
+ 2. Reads your skill configuration (agentId and orgId)
516
+ 3. Constructs authenticated admin dashboard URL
517
+ 4. Opens the dashboard in your default browser
518
+
519
+ **Requirements:**
520
+ - Must be authenticated (`lua auth configure`)
521
+ - Must be in a skill directory (has `lua.skill.yaml`)
522
+ - Config must contain `agent.agentId` and `agent.orgId`
523
+
524
+ **What You Can Do:**
525
+ - **📊 Usage Analytics** - View API calls, skill usage, performance
526
+ - **⚙️ Agent Configuration** - Manage settings, persona, metadata
527
+ - **💳 Billing & Subscriptions** - View plans, payment, billing history
528
+ - **👥 Team Management** - Add/remove members, permissions
529
+ - **🔑 API Key Management** - View, generate, revoke keys
530
+
531
+ **Example:**
532
+ ```bash
533
+ $ lua admin
534
+ ✓ Lua Admin Dashboard opened in your browser
535
+
536
+ Dashboard URL: https://admin.heylua.ai
537
+ Agent ID: agent-abc123
538
+ Organization ID: org-xyz789
539
+ ```
540
+
541
+ **Errors:**
542
+ ```bash
543
+ # No API key
544
+ ❌ Error during admin: No API key found. Please run "lua configure" first.
545
+
546
+ # Not in skill directory
547
+ ❌ Error during admin: Could not read lua.skill.yaml. Please ensure you are in a Lua skill directory.
548
+
549
+ # Missing configuration
550
+ ❌ Error during admin: No agentId found in lua.skill.yaml. Please ensure your configuration is valid.
551
+ ```
552
+
553
+ ---
554
+
555
+ ### `lua docs`
556
+
557
+ Opens the Lua documentation website in your default browser.
558
+
559
+ **Usage:**
560
+ ```bash
561
+ lua docs
562
+ ```
563
+
564
+ **What it does:**
565
+ Opens https://docs.heylua.ai in your default browser for quick access to:
566
+ - Platform overview and concepts
567
+ - CLI command reference
568
+ - API documentation and guides
569
+ - Tool examples (30+ examples)
570
+ - Integration tutorials
571
+ - Best practices and tips
572
+
573
+ **Requirements:**
574
+ None - works from anywhere
575
+
576
+ **Example:**
577
+ ```bash
578
+ $ lua docs
579
+ ✓ Lua Documentation opened in your browser
580
+
581
+ Documentation: https://docs.heylua.ai
582
+ ```
583
+
584
+ **Documentation Sections:**
585
+ - **Overview** - Platform introduction and key concepts
586
+ - **CLI** - Complete command reference
587
+ - **API Reference** - Platform APIs (Products, Baskets, Orders, Data)
588
+ - **Tool Examples** - E-commerce, integrations, custom logic
589
+ - **Demos** - Full example implementations
590
+ - **Best Practices** - Tips for building effective agents
591
+
592
+ ---
593
+
504
594
  ## Command Reference
505
595
 
506
596
  ### Global Flags