CLI Commands#
Run via flask spkrepo <command> inside the app’s environment.
Commands#
- create_user
Create a new user with an activated account.
Options:
-u/--username,-e/--email,-p/--password(all prompted if omitted).- create_admin
Create a new super admin user, assigning the
admin,package_admin, anddeveloperroles. Skips user creation if a user with the given email already exists.Options:
-u/--username(defaultadmin),-e/--email(defaultadmin@synocommunity.com),-p/--password(prompted).- populate_db
Populate the database with sample packages, for local development.
- depopulate_db
Delete all packages from the database and file system. Refuses to run if any build has been uploaded to Object Storage.
- ingest_logs
Ingest download stats from Object Storage log files and refresh the download-count materialized view. Runs hourly via the
ingestcontainer — see Storage & Tasks.