Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

ext_commands.py 1.3KB

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