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.

ext_commands.py 1.4KB

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