您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

ext_commands.py 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. install_rag_pipeline_plugins,
  15. migrate_data_for_plugin,
  16. migrate_oss,
  17. old_metadata_migration,
  18. remove_orphaned_files_on_storage,
  19. reset_email,
  20. reset_encrypt_key_pair,
  21. reset_password,
  22. setup_datasource_oauth_client,
  23. setup_system_tool_oauth_client,
  24. transform_datasource_credentials,
  25. upgrade_db,
  26. vdb_migrate,
  27. )
  28. cmds_to_register = [
  29. reset_password,
  30. reset_email,
  31. reset_encrypt_key_pair,
  32. vdb_migrate,
  33. convert_to_agent_apps,
  34. add_qdrant_index,
  35. create_tenant,
  36. upgrade_db,
  37. fix_app_site_missing,
  38. migrate_data_for_plugin,
  39. extract_plugins,
  40. extract_unique_plugins,
  41. install_plugins,
  42. old_metadata_migration,
  43. clear_free_plan_tenant_expired_logs,
  44. clear_orphaned_file_records,
  45. remove_orphaned_files_on_storage,
  46. setup_system_tool_oauth_client,
  47. cleanup_orphaned_draft_variables,
  48. migrate_oss,
  49. setup_datasource_oauth_client,
  50. transform_datasource_credentials,
  51. install_rag_pipeline_plugins,
  52. ]
  53. for cmd in cmds_to_register:
  54. app.cli.add_command(cmd)