You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. from dify_app import DifyApp
  2. def init_app(app: DifyApp):
  3. from commands import (
  4. add_qdrant_index,
  5. clear_free_plan_tenant_expired_logs,
  6. clear_orphaned_file_records,
  7. convert_to_agent_apps,
  8. create_tenant,
  9. extract_plugins,
  10. extract_unique_plugins,
  11. fix_app_site_missing,
  12. install_plugins,
  13. migrate_data_for_plugin,
  14. old_metadata_migration,
  15. remove_orphaned_files_on_storage,
  16. reset_email,
  17. reset_encrypt_key_pair,
  18. reset_password,
  19. setup_system_tool_oauth_client,
  20. upgrade_db,
  21. vdb_migrate,
  22. )
  23. cmds_to_register = [
  24. reset_password,
  25. reset_email,
  26. reset_encrypt_key_pair,
  27. vdb_migrate,
  28. convert_to_agent_apps,
  29. add_qdrant_index,
  30. create_tenant,
  31. upgrade_db,
  32. fix_app_site_missing,
  33. migrate_data_for_plugin,
  34. extract_plugins,
  35. extract_unique_plugins,
  36. install_plugins,
  37. old_metadata_migration,
  38. clear_free_plan_tenant_expired_logs,
  39. clear_orphaned_file_records,
  40. remove_orphaned_files_on_storage,
  41. setup_system_tool_oauth_client,
  42. ]
  43. for cmd in cmds_to_register:
  44. app.cli.add_command(cmd)