This tool resets and refreshes the ValKey manifest from the repository to handle updates.
Purpose
The NSE Manifest Reset tool addresses the issue where new scripts added to the repository are not reflected in the ValKey manifest. It:
- Forces a refresh of the git repository to get the latest changes
- Resets the ValKey manifest with the current repository contents
- Re-syncs all scripts to ensure they're up to date
- Helps troubleshoot manifest synchronization issues
Usage
In Docker Container
# Run a simple reset
docker exec -it sirius-engine go run cmd/nse-reset/main.go
# Run with complete reset of ValKey manifest
docker exec -it sirius-engine go run cmd/nse-reset/main.go --force
Locally
# Run a simple reset
go run cmd/nse-reset/main.go
# Run with complete reset of ValKey manifest
go run cmd/nse-reset/main.go --force
Flags
--force: Completely resets the ValKey manifest before syncing (useful when the manifest is corrupted)
When to Use
Use this tool when:
- You've added new scripts to the repository but they don't appear in scans
- The ValKey manifest is out of sync with the repository
- You've made significant changes to scripts and want to ensure they're properly synced
- You suspect corruption in the ValKey manifest
Output
The reset tool provides detailed feedback:
- 🔄 Operations in progress
- ✅ Successful operations
- ⚠️ Warnings that don't prevent completion
- ❌ Critical errors that stop execution
After Running
After running the reset tool, you should:
- Run the NSE test program to verify the scripts are properly synced
- Run a scan test to ensure the scripts are working correctly
See Also