Documentation Index
Fetch the complete documentation index at: https://mintlify.com/cgwire/zou/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Zou provides administrative commands for managing users, authentication, synchronization between instances, and system maintenance.User Management
create-admin
Create an admin user to access the API. Required for initial setup.EMAIL- Email address of the admin user (required)
--password TEXT- User password (required for new users)
- Password must meet minimum length requirements
- Email must be valid format (except
admin@example.comis allowed) - Respects user limit if configured
change-password
Change the password for an existing user.EMAIL- Email address of the user (required)
--password TEXT- New password (required)
- “The password is too short.” - Password does not meet minimum requirements
set-person-as-active
Activate or deactivate a user account.EMAIL- Email address of the user (required)
--unactive- Deactivate the user (optional flag)
create-bot
Create a bot account for API automation.--email TEXT- Bot email address (required)--name TEXT- Bot display name (required)--role TEXT- Bot role:user,manager, oradmin(default:user)--expiration-date TEXT- Expiration date in YYYY-MM-DD format (optional)
Authentication Management
clean-auth-tokens
Remove revoked and expired authentication tokens from the database.clear-all-auth-tokens
Remove all authentication tokens, forcing all users to log in again.- Security incidents requiring immediate logout of all users
- After major authentication system changes
- Emergency access revocation
disable-two-factor-authentication
Disable two-factor authentication for a specific user.EMAIL-OR-DESKTOP-LOGIN- Email address or desktop login (required)
- “Email (user@example.com) not listed in database.” - User not found
- “Two factor authentication can’t be disabled for user@example.com because it’s not activated.” - 2FA not enabled
LDAP Integration
sync-with-ldap-server
Synchronize users from your LDAP server to Zou. Creates new user accounts for each LDAP user.- LDAP configuration must be set in environment variables
- Sufficient user license capacity
Instance Synchronization
These commands synchronize data between Zou instances, useful for multi-site deployments or backups.All sync commands require
SYNC_LOGIN and SYNC_PASSWORD environment variables:sync-full
Retrieve all data from a source Zou instance.--source TEXT- Source instance URL (default:http://localhost:5000)--project TEXT- Specific project to sync (optional)--no-projects- Exclude projects (optional flag)--only-projects- Sync only projects (optional flag)--with-events- Include event history (optional flag)
sync-full-files
Retrieve all preview files and thumbnails from a source instance.--source TEXT- Source instance URL (default:http://localhost:5000)--project TEXT- Specific project (optional)--multithreaded- Enable parallel downloads (optional flag)--number-workers INTEGER- Number of parallel workers (default: 30)--number-attemps INTEGER- Retry attempts per file (default: 3)--force-resync- Re-download existing files (optional flag)
sync-changes
Run a daemon that continuously imports data related to changes on the source instance.--event-source TEXT- Event stream URL (default:http://localhost:8080)--source TEXT- API URL (default:http://localhost:8080/api)--logs-directory TEXT- Log file directory (optional)
sync-file-changes
Run a daemon that downloads files related to changes on the source instance.--event-source TEXT- Event stream URL (default:http://localhost:8080)--source TEXT- API URL (default:http://localhost:8080/api)--logs-directory TEXT- Log file directory (optional)
sync-last-events
Retrieve recent events from source instance and import related data.--source TEXT- API URL (default:http://localhost:8080/api)--minutes INTEGER- How many minutes back to sync (default: 0)--page-size INTEGER- Events per page (default: 300)
sync-last-files
Retrieve recent preview files and thumbnails from source instance.--source TEXT- API URL (default:http://localhost:8080/api)--minutes INTEGER- How many minutes back to sync (default: 20)--page-size INTEGER- Files per page (default: 50)
File Management
upload-files-to-cloud-storage
Upload preview files to configured object storage (S3, Swift, etc.).--days INTEGER- Only upload files from last N days (optional)
download-storage-files
Download all files from Swift object storage to local storage.generate-preview-extra
Generate tiles, thumbnails, and metadata for preview files.--project TEXT- Specific project name (optional)--entity-id TEXT- Specific entity ID (optional)--episode TEXT- Specific episode(s), can be used multiple times (optional)--only-shots- Process only shots (optional flag)--only-assets- Process only assets (optional flag)--with-tiles- Generate video tiles (optional flag)--with-metadata- Extract video metadata (optional flag)--with-thumbnails- Generate thumbnails (optional flag)--force-regenerate-tiles- Regenerate existing tiles (optional flag)
renormalize-movie-preview-files
Reprocess movie preview files to fix encoding issues or update quality.--preview-file-id TEXT- Specific preview file ID (optional)--project-id TEXT- All previews in project (optional)--all-broken- All broken previews (optional flag)--all-processing- All stuck processing previews (optional flag)--days INTEGER- Previews from last N days (optional)--hours INTEGER- Previews from last N hours (optional)--minutes INTEGER- Previews from last N minutes (optional)
reset-movie-files-metadata
Extract and store height/width metadata for all movie preview files.reset-picture-files-metadata
Extract and store height/width metadata for all picture preview files.Search Management
reset-search-index
Rebuild the search index from scratch.search-asset
Search for assets by name or other criteria.--query TEXT- Search query (default: empty = all assets)
Plugin Management
install-plugin
Install a Zou plugin from a local path, zip file, or Git repository.--path TEXT- Plugin path (required)--force- Force reinstall if already installed (optional flag)
After installing a plugin, you must restart the Zou server for changes to take effect.
uninstall-plugin
Remove an installed plugin.--id TEXT- Plugin ID (required)
list-plugins
List all installed plugins.--format TEXT- Output format:tableorjson(default:table)--verbose- Show additional plugin information (optional flag)--filter-field TEXT- Field to filter:plugin_id,name,maintainer,license(optional)--filter-value TEXT- Value to search for (optional)
create-plugin-skeleton
Create a new plugin template with boilerplate code.--path TEXT- Directory to create plugin (required)--id TEXT- Unique plugin ID (required)--name TEXT- Plugin display name (default: “MyPlugin”)--description TEXT- Plugin description (default: “My plugin description.”)--version TEXT- Plugin version (default: “0.1.0”)--maintainer TEXT- Maintainer info (default: “Author <author@author.com>”)--website TEXT- Plugin website (default: “mywebsite.com”)--license TEXT- License identifier (default: “GPL-3.0-only”)--icon TEXT- Lucide icon name (optional)--force- Overwrite existing directory (optional flag)
create-plugin-package
Package a plugin directory into a distributable zip file.--path TEXT- Plugin directory (required)--output-path TEXT- Output zip file path (required)--force- Overwrite existing file (optional flag)
migrate-plugin-db
Generate database migration files for a plugin.--path TEXT- Plugin directory (required)--message TEXT- Migration description (default: empty)
System Information
version
Display the current Zou version.Common Admin Workflows
Initial Setup
User Management
Security Maintenance
Instance Replication
File Maintenance
Next Steps
- Database Commands - Database management reference
- CLI Overview - General CLI usage