Vault Multi-App Platform Commands Cheatsheet
Application-Aware Architecture: Each application maintains isolated data and uses the TraceabilityService/Bridge pattern for proper multi-tenancy.
Quick Start
Application Management
Data Refresh Commands
| Command | Description | Example |
|---|---|---|
./dj.sh rf | Refresh all applications (uses TraceabilityService) | ./dj.sh rf |
./dj.sh rf_app <slug> [component] | Refresh specific application | ./dj.sh rf_app skyflow features |
./dj.sh rf_force | Force refresh (clears cache) | ./dj.sh rf_force |
./dj.sh rf_dry | Preview refresh without changes | ./dj.sh rf_dry |
./dj.sh rf_legacy | Use legacy repository method | ./dj.sh rf_legacy |
Application Data Inspection
| Command | Description | Example |
|---|---|---|
./dj.sh app_status <slug> | Detailed status for application | ./dj.sh app_status skyflow |
./dj.sh apps_data | List all apps with data summary | ./dj.sh apps_data |
./dj.sh app_data <slug> [component] | Show component data | ./dj.sh app_data nexus keywords |
./dj.sh clear_app <slug> | Clear data for specific app | ./dj.sh clear_app testapp |
Development Environment
Setup Commands
| Command | Description | Use Case |
|---|---|---|
./dj.sh devstart | Basic development setup | First time setup |
./dj.sh devstart_vault | Setup with vault tracking | Recommended for multi-app development |
./dj.sh devstart_full | Complete setup + all test users | Full testing environment |
./dj.sh devclear | Clear all development data | Reset everything |
./dj.sh devstatus | Show environment status | Health check |
Database Management
| Command | Description | When to Use |
|---|---|---|
./dj.sh mkmig [app] | Create migrations | After model changes |
./dj.sh mig | Apply migrations | After creating migrations |
./dj.sh reset_db | Nuclear reset + fresh setup | When everything is broken |
Testing & Validation
Architecture Testing
| Command | Description | Purpose |
|---|---|---|
./dj.sh test_isolation | Verify multi-app data separation | Ensure apps don’t leak data |
./dj.sh test_bridge <slug> | Test TraceabilityBridge for app | Validate service architecture |
./dj.sh test_matrix | Test ApplicationMatrix isolation | Verify matrix isolation |
./dj.sh test_refresh_app <slug> | Full refresh test for app | End-to-end app testing |
Authentication Testing
| Command | Description | Purpose |
|---|---|---|
./dj.sh test_auth | Test auth endpoints | Verify login/logout works |
./dj.sh test_auth_tiers | Test all tier authentications | Multi-tier validation |
./dj.sh api_test | Test API with authentication | Endpoint protection check |
Application Status Monitoring
Quick Health Checks
Detailed Application Inspection
Troubleshooting
Common Issues
| Problem | Command | Notes |
|---|---|---|
| ”no such table: scraper_app_datasets” | ./dj.sh mkmig scraper --name vault_models && ./dj.sh mig | Missing vault model migrations |
| Apps sharing data | ./dj.sh test_isolation | Check data isolation |
| Refresh failures | ./dj.sh test_bridge <slug> | Test service architecture |
| Authentication broken | ./dj.sh test_auth | Verify auth endpoints |
| Cache issues | ./dj.sh rf_force | Force refresh clears cache |
Diagnostic Commands
Data Architecture
File Structure
Application Filtering
Applications can have custom filters in theirapp_metadata:
Workflows
New Application Setup
Daily Development
Production Deployment
Advanced Features
Service Architecture Testing
Multi-Tier Authentication
Cache Management
Migration from Legacy System
Step-by-Step Migration
-
Backup existing data
-
Create vault models
-
Initialize vault tracking
-
Test new architecture
-
Migrate data refresh to new system
Compatibility Matrix
| Feature | Legacy | New System | Migration Path |
|---|---|---|---|
| Global matrix | ✅ | ⚠️ (compatibility mode) | Use ApplicationMatrix |
| Single app refresh | ❌ | ✅ | Use ./dj.sh rf_app |
| Data isolation | ❌ | ✅ | Automatic with new system |
| Service architecture | ❌ | ✅ | Use TraceabilityBridge |
| Vault tracking | ❌ | ✅ | Enable with devstart_vault |
Performance Tips
- Use
./dj.sh rf_app <slug>instead of./dj.sh rfwhen working on specific applications - Run
./dj.sh test_isolationregularly to catch data leakage early - Use
./dj.sh rf_dryto preview changes before applying them - Monitor data quality scores with
./dj.sh apps_data - Clear unused app data with
./dj.sh clear_app <slug>to save space