{"id":22116282,"url":"https://github.com/kurokobo/psdify","last_synced_at":"2026-04-19T16:05:13.382Z","repository":{"id":265693569,"uuid":"894027217","full_name":"kurokobo/psdify","owner":"kurokobo","description":"PSDify: A PowerShell module for workspace management for Dify, featuring various cmdlets for managing Apps, Knowledges, Models, and Members, etc.","archived":false,"fork":false,"pushed_at":"2026-04-16T03:44:11.000Z","size":1244,"stargazers_count":21,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-16T05:45:12.342Z","etag":null,"topics":["dify"],"latest_commit_sha":null,"homepage":"https://www.powershellgallery.com/packages/PSDify","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kurokobo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"kurokobo"}},"created_at":"2024-11-25T16:13:03.000Z","updated_at":"2026-04-16T03:43:50.000Z","dependencies_parsed_at":"2025-03-18T15:23:49.050Z","dependency_job_id":"8db0090b-8dfa-43f0-b67f-179cd68e48a4","html_url":"https://github.com/kurokobo/psdify","commit_stats":null,"previous_names":["kurokobo/psdify"],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/kurokobo/psdify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurokobo%2Fpsdify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurokobo%2Fpsdify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurokobo%2Fpsdify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurokobo%2Fpsdify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kurokobo","download_url":"https://codeload.github.com/kurokobo/psdify/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurokobo%2Fpsdify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32012797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dify"],"created_at":"2024-12-01T12:24:57.252Z","updated_at":"2026-04-19T16:05:13.377Z","avatar_url":"https://github.com/kurokobo.png","language":"PowerShell","funding_links":["https://github.com/sponsors/kurokobo"],"categories":["PowerShell"],"sub_categories":[],"readme":"# PSDify: A PowerShell Module for Workspace Management for Dify\r\n\r\n![image](https://github.com/user-attachments/assets/fd7a22ea-4ed6-46c3-a2dc-4027c2650f5e)\r\n\r\n**PSDify** is a PowerShell module designed to enable workspace management for [Dify](https://github.com/langgenius/dify) from the command line.\r\n\r\nHere are some examples of what you can do with PSDify:\r\n\r\n- ✨ **Export and import apps**\r\n- ✨ **Create knowledge and upload files**\r\n- ✨ **Manage members: retrieve, invite, remove, and change roles**\r\n- ✨ **Add models and update system models**\r\n- ✨ **Search and install plugins**\r\n- ✨ **Initialize instances for the Community Edition**\r\n\r\nFor a full list of available cmdlets, refer to the [📚Documentation](https://kurokobo.github.io/psdify/).\r\n\r\n\u003e [!WARNING]\r\n\u003e\r\n\u003e - 🚨 This is an **unofficial** project. LangGenius does not provide any support for this module.\r\n\u003e - 🚨 It uses **undocumented APIs** of Dify, which means it **may break with future updates** to Dify.\r\n\u003e - 🚨 The **Enterprise Edition** of Dify (multi-workspace environments) is **not supported**.\r\n\u003e - 🚨 Currently, the focus is on \"**making it work**.\" This means **error handling and documentation are incomplete**, and it does not strictly follow PowerShell best practices.\r\n\r\n## Tested Environments\r\n\r\nThe latest tested Dify version is **1.13.2**.\r\n\r\n\u003e [!NOTE]\r\n\u003e\r\n\u003e - This module has been tested mainly against Dify Community Edition and Dify Cloud Edition, with Windows PowerShell (PowerShell 5.1) and PowerShell 7.4.\r\n\u003e - The Enterprise Edition of Dify (multi-workspace environments) can also be operated by this module, but it is not fully tested.\r\n\r\n## Quick Start\r\n\r\nFor a full list of available cmdlets, refer to the [📚Documentation](https://kurokobo.github.io/psdify/).\r\n\r\n### Installation\r\n\r\n```powershell\r\nInstall-Module -Name PSDify\r\n```\r\n\r\n### Connecting to Dify\r\n\r\n```powershell\r\n# Authenticate with a password (for Community Edition)\r\nConnect-Dify -AuthMethod \"Password\" -Server \"https://dify.example.com\" -Email \"dify@example.com\"\r\n\r\n# Authenticate with a code (for Cloud Edition)\r\nConnect-Dify -AuthMethod \"Code\" -Server \"https://dify.example.com\" -Email \"dify@example.com\"\r\n```\r\n\r\n### Managing Apps\r\n\r\n```powershell\r\n# Retrieve apps\r\nGet-DifyApp\r\n\r\n# Export apps (as .\\DSLs\\*.yml)\r\nGet-DifyApp | Export-DifyApp\r\n\r\n# Import apps\r\nGet-Item -Path \"DSLs/*.yml\" | Import-DifyApp\r\n```\r\n\r\n### Managing Knowledge\r\n\r\n```powershell\r\n# Retrieve knowledge\r\nGet-DifyKnowledge\r\n\r\n# Create knowledge\r\nNew-DifyKnowledge -Name \"My New Knowledge\"\r\n\r\n# Upload files to knowledge and wait for indexing to complete\r\n$Knowledge = Get-DifyKnowledge -Name \"My New Knowledge\"\r\nGet-Item -Path \"Docs/*.md\" | Add-DifyDocument -Knowledge $Knowledge -Wait\r\n```\r\n\r\n### Managing Members\r\n\r\n```powershell\r\n# Retrieve members\r\nGet-DifyMember\r\n\r\n# Invite a new member\r\nNew-DifyMember -Email \"user@example.com\" -Role \"normal\"\r\n\r\n# Change a member's role\r\nGet-DifyMember -Email \"user@example.com\" | Set-DifyMemberRole -Role \"editor\"\r\n```\r\n\r\n### Managing Models\r\n\r\n```powershell\r\n# Retrieve models\r\nGet-DifyModel\r\n\r\n# Add a predefined model\r\nNew-DifyModel -Provider \"openai\" -From \"predefined\" `\r\n  -Credential @{\r\n    \"openai_api_key\" = \"sk-proj-****************\"\r\n  }\r\n\r\n# Add a customizable model\r\nNew-DifyModel -Provider \"openai\" -From \"customizable\" `\r\n  -Type \"llm\" -Name \"gpt-4o-mini\" `\r\n  -Credential @{\r\n    \"openai_api_key\" = \"sk-proj-****************\"\r\n  }\r\n\r\n# Update the system model\r\nSet-DifySystemModel -Type \"llm\" -Provider \"openai\" -Name \"gpt-4o-mini\"\r\n```\r\n\r\n### Managing Plugins\r\n\r\n```powershell\r\n# Search plugins\r\nFind-DifyPlugin -Id \"langgenius/openai\"\r\n\r\n# Install a plugin and wait for it to be installed\r\nFind-DifyPlugin -Id \"langgenius/openai\" | Install-DifyPlugin -Wait\r\n\r\n# Get installed plugins\r\nGet-DifyPlugin\r\n```\r\n\r\n### Initializing a Community Edition Instance\r\n\r\n```powershell\r\n# Start a Dify instance with Docker Compose\r\ndocker compose up -d\r\n\r\n# Wait for the instance to be ready\r\nWait-Dify -Server \"https://dify.example.com\"\r\n\r\n# Initialize the instance\r\nInitialize-Dify -Server \"https://dify.example.com\" -Email \"dify@example.com\" -Name \"Dify\"\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkurokobo%2Fpsdify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkurokobo%2Fpsdify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkurokobo%2Fpsdify/lists"}