+5
![dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>](/assets/img/avatar_default.png)
![autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>](/assets/img/avatar_default.png)







Jingyi
GitHub
yyh
Joel
hjlarry
fatelei
Asuka Minato
autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Xiyuan Chen
gigglewang
Yunlu Wen
chariri
Evan
yyh
9b74df21d0
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: yyh <[email protected]> Co-authored-by: Joel <[email protected]> Co-authored-by: hjlarry <[email protected]> Co-authored-by: fatelei <[email protected]> Co-authored-by: Asuka Minato <[email protected]> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Xiyuan Chen <[email protected]> Co-authored-by: gigglewang <[email protected]> Co-authored-by: Yunlu Wen <[email protected]> Co-authored-by: chariri <[email protected]> Co-authored-by: Evan <[email protected]> Co-authored-by: yyh <[email protected]>
86 lines
2.5 KiB
Python
86 lines
2.5 KiB
Python
from dify_app import DifyApp
|
|
|
|
|
|
def init_app(app: DifyApp):
|
|
from commands import (
|
|
add_qdrant_index,
|
|
archive_workflow_runs,
|
|
backfill_plugin_auto_upgrade,
|
|
clean_expired_messages,
|
|
clean_workflow_runs,
|
|
cleanup_orphaned_draft_variables,
|
|
clear_free_plan_tenant_expired_logs,
|
|
clear_orphaned_file_records,
|
|
convert_to_agent_apps,
|
|
create_tenant,
|
|
data_migrate,
|
|
delete_archived_workflow_runs,
|
|
export_app_messages,
|
|
export_migration_data,
|
|
export_migration_data_template,
|
|
extract_plugins,
|
|
extract_unique_plugins,
|
|
file_usage,
|
|
fix_app_site_missing,
|
|
import_migration_data,
|
|
install_plugins,
|
|
install_rag_pipeline_plugins,
|
|
migrate_data_for_plugin,
|
|
migrate_oss,
|
|
migration_data_wizard,
|
|
old_metadata_migration,
|
|
remove_orphaned_files_on_storage,
|
|
reset_email,
|
|
reset_encrypt_key_pair,
|
|
reset_password,
|
|
restore_workflow_runs,
|
|
setup_datasource_oauth_client,
|
|
setup_system_tool_oauth_client,
|
|
setup_system_trigger_oauth_client,
|
|
transform_datasource_credentials,
|
|
upgrade_db,
|
|
vdb_migrate,
|
|
)
|
|
|
|
cmds_to_register = [
|
|
reset_password,
|
|
reset_email,
|
|
reset_encrypt_key_pair,
|
|
vdb_migrate,
|
|
convert_to_agent_apps,
|
|
add_qdrant_index,
|
|
create_tenant,
|
|
data_migrate,
|
|
upgrade_db,
|
|
fix_app_site_missing,
|
|
migrate_data_for_plugin,
|
|
backfill_plugin_auto_upgrade,
|
|
extract_plugins,
|
|
extract_unique_plugins,
|
|
install_plugins,
|
|
old_metadata_migration,
|
|
clear_free_plan_tenant_expired_logs,
|
|
clear_orphaned_file_records,
|
|
remove_orphaned_files_on_storage,
|
|
file_usage,
|
|
setup_system_tool_oauth_client,
|
|
setup_system_trigger_oauth_client,
|
|
cleanup_orphaned_draft_variables,
|
|
migrate_oss,
|
|
setup_datasource_oauth_client,
|
|
transform_datasource_credentials,
|
|
install_rag_pipeline_plugins,
|
|
archive_workflow_runs,
|
|
delete_archived_workflow_runs,
|
|
restore_workflow_runs,
|
|
clean_workflow_runs,
|
|
clean_expired_messages,
|
|
export_app_messages,
|
|
export_migration_data,
|
|
export_migration_data_template,
|
|
import_migration_data,
|
|
migration_data_wizard,
|
|
]
|
|
for cmd in cmds_to_register:
|
|
app.cli.add_command(cmd)
|