This directory contains command-line utilities for OpenVK management.
Automatically removes pending photo uploads older than the specified time.
Usage:
# Clean up uploads older than 24 hours (default)
php openvkctl cleanup-pending-uploads
# Clean up uploads older than 1 hour
php openvkctl cleanup-pending-uploads --max-age=1
# Dry run to see what would be deleted
php openvkctl cleanup-pending-uploads --dry-runOptions:
--max-age,-a: Maximum age in hours (default: 24)--dry-run,-d: Show what would be deleted without actually deleting
Cron Setup: To automatically clean up pending uploads daily, add to your crontab:
# Clean up pending uploads daily at 2 AM
0 2 * * * cd /path/to/openvk && php openvkctl cleanup-pending-uploadsRebuilds photo thumbnails and image sizes.
Fetches Toncoin transactions for payment processing.
Performs database upgrades and migrations.
Creates test user accounts for local development.
Usage:
# Create one user (default)
php openvkctl generate-users
# Create 20 users
php openvkctl generate-users --count=20
# Create 20 users
php openvkctl generate-users -c 20Options:
--count,-c: Number of users to create (default: 1)
The command prints a table with profile ID, email, password, and profile URL for each created user.