{"id":26254011,"url":"https://github.com/huanent/dotnet-deploy","last_synced_at":"2026-02-13T03:31:14.586Z","repository":{"id":263727143,"uuid":"643282099","full_name":"huanent/dotnet-deploy","owner":"huanent","description":"One click deploy dotnet project to linux host","archived":false,"fork":false,"pushed_at":"2025-02-07T08:30:13.000Z","size":86,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-27T03:32:54.810Z","etag":null,"topics":["command","deploy","dotnet","publish","tool"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/huanent.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2023-05-20T17:02:51.000Z","updated_at":"2025-02-07T08:28:53.000Z","dependencies_parsed_at":"2025-01-24T03:31:26.780Z","dependency_job_id":null,"html_url":"https://github.com/huanent/dotnet-deploy","commit_stats":null,"previous_names":["huanent/dotnet-deploy"],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huanent%2Fdotnet-deploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huanent%2Fdotnet-deploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huanent%2Fdotnet-deploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huanent%2Fdotnet-deploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huanent","download_url":"https://codeload.github.com/huanent/dotnet-deploy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251085144,"owners_count":21533821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["command","deploy","dotnet","publish","tool"],"created_at":"2025-03-13T18:18:56.248Z","updated_at":"2026-02-13T03:31:14.580Z","avatar_url":"https://github.com/huanent.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dotnet Deploy Tool\n\n[![NuGet](https://img.shields.io/nuget/v/dotnet-deploy?label=nuget\\\u0026style=for-the-badge)](https://www.nuget.org/packages/dotnet-deploy/)\n\nA lightweight deployment tool that simplifies publishing .NET applications to remote Linux hosts over SSH and optionally managing their systemd services.\n\n---\n\n## Installation\n\n### Global installation\n\n```bash\ndotnet tool install dotnet-deploy -g\n```\n\n### Local installation\n\n```bash\ncd ./your_solution_directory\ndotnet new tool-manifest\ndotnet tool install dotnet-deploy\n```\n\n---\n\n## Quick Start\n\n### Publish to a remote host\n\n```bash\ndotnet deploy publish --host 127.0.0.1 --username root --password abc123\n```\n\n### Install as a systemd service\n\nRunning `dotnet deploy publish` will automatically restart the service if the systemd service is already installed.\n\n```bash\ndotnet deploy systemd install --host 127.0.0.1 --username root --password abc123\n```\n\n---\n\n## Using appsettings.json and User Secrets to simplify commands\n\nYou can avoid repeatedly typing host and authentication parameters by defining a `Deploy` section in your configuration.\n\n### appsettings.json\n\n```json\n{\n  \"Deploy\": {\n    \"Host\": \"127.0.0.1\",\n    \"Username\": \"root\"\n  }\n}\n```\n\n### Protect password using User Secrets\n\n```bash\ndotnet user-secrets set Deploy:Password abc123\n```\n\n### Publish using configuration\n\n```bash\ndotnet deploy publish\n```\n\nThe tool will automatically read values from configuration and user-secrets.\n\n---\n\n## Commands\n\n### publish\n\nPublishes the project to a remote host.\n\n```bash\ndotnet deploy publish\n```\n\n### info\n\nDisplays current deployment configuration.\n\n```bash\ndotnet deploy info\n```\n\n### systemd\n\nManage systemd service on the remote host.\n\nInstall:\n\n```bash\ndotnet deploy systemd install\n```\n\nUninstall:\n\n```bash\ndotnet deploy systemd uninstall\n```\n\nRestart:\n\n```bash\ndotnet deploy systemd restart\n```\n\nStatus:\n\n```bash\ndotnet deploy systemd status\n```\n\n---\n\n## FAQ\n\n### Directory contains multiple projects\n\nSpecify the project directory:\n\n```bash\ndotnet deploy publish --project ./src/my_project\n```\n\n### Directory contains multiple csproj files\n\nSpecify the exact project file:\n\n```bash\ndotnet deploy publish --project ./src/my_project/my_project.csproj\n```\n\n### Supported Operating Systems\n\nThe current version has been tested on Ubuntu. Other Linux distributions may work but are not yet fully validated.\n\n### Default resource paths on remote host\n\nPublished files:\n\n```\n/var/dotnet-apps/[project_name]\n```\n\nSystemd service file:\n\n```\n/etc/systemd/system/[project_name].service\n```\n\n---\n\n## Command Reference\n\nUse `-h` on any command to view its description.\n\nExample:\n\n```bash\ndotnet deploy publish -h\n```\n\n```\nDescription:\n  Publish project to remote host\n\nUsage:\n  DotnetDeploy publish [options]\n\nOptions:\n  --host            Target host name or domain\n  --username        SSH username\n  --password        SSH password\n  --private-key     SSH private key\n  --project         Project path\n  --include-files   Copy the specified file or directory into the output directory\n  --all-hosts       Publish to all configured hosts\n  --before-command  Command to run before dotnet publish\n  --after-command   Command to run after dotnet publish\n  -?, -h, --help    Show help and usage information\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuanent%2Fdotnet-deploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuanent%2Fdotnet-deploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuanent%2Fdotnet-deploy/lists"}