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.

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