{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/core-docs/pulls/comments/58141067","id":58141067,"diff_hunk":"@@ -0,0 +1,66 @@\n+dotnet-publish\n+==============\n+\n+## NAME\n+\n+`dotnet-publish` - packs the application and all of its dependencies into a folder getting it ready for publishing\n+\n+## SYNOPSIS\n+\n+dotnet-publish [--framework]  \n+    [--runtime] [--output]  \n+    [--configuration]  \n+    [< project >]  \n+\n+## DESCRIPTION\n+\n+`dotnet-publish` will compile the application, read through its dependencies specified in `project.json` and publish the resulting set of files to a directory. \n+This directory will contain the assemblies, the runtime as well as the executable version of the application. This directory can then be moved to a different machine and the application will be able to run regardless of existence of any other runtime. \n+\n+The native dependencies of the runtime are not packaged with the application. This means that the target machine needs to have the native dependencies installed in order for the application to run.  \n+\n+## OPTIONS\n+\n+`[project]` \n+    \n+`dotnet-publish` needs access to `project.json` to work. If it is not specified on invocation via [project], `project.json` in the current directory will be the default.     If no `project.json` can be found, `dotnet-publish` will error out. `dotnet-publish` command also requires certain dependencies in the `project.json` to work. Namely the `Microsoft.NETCore.Runtime` package must be referenced as a dependency in order for the command to copy the runtime files as well as the application's files to the published location.  \n+\n+`-f`, `--framework` [FID]\n+\n+Publish the application for a given framework identifier (FID). If not specified, FID is read from `project.json`. In case of no valid framework found, the command will error out. In case of multiple valid frameworks found, the command will publish for all valid frameworks. \n+\n+\n+`-r`, `--runtime` [RID]\n+\n+Publish the application for a given runtime. If the option is not specified, the command will default to the runtime for the current operationg system. Supported values for the option at this time are:\n+\n+    * ubuntu.14.04-x64\n+    * win7-x64\n+    * osx.10.10-x64\n+\n+`-o`, `--output`\n+\n+Specify the path where to place the directory. If not specified, will default to _./bin/[configuration]/[framework]/[runtime]/_\n+\n+`-c`, `--configuration [Debug|Release]`\n+\n+Configuration to use when publishing. If not specified, will default to \"Debug\".\n+\n+## EXAMPLES\n+\n+`dotnet-publish`\n+\n+    Publish the current application using the `project.json` framework and runtime for the current operating system. \n+","path":"docs/cli/dotnet-publish.md","position":54,"original_position":54,"commit_id":"773360eeb075b955b8e497fe9c4f4c44bdebc509","original_commit_id":"773360eeb075b955b8e497fe9c4f4c44bdebc509","user":{"login":"billwert","id":4523120,"avatar_url":"https://avatars.githubusercontent.com/u/4523120?v=3","gravatar_id":"","url":"https://api.github.com/users/billwert","html_url":"https://github.com/billwert","followers_url":"https://api.github.com/users/billwert/followers","following_url":"https://api.github.com/users/billwert/following{/other_user}","gists_url":"https://api.github.com/users/billwert/gists{/gist_id}","starred_url":"https://api.github.com/users/billwert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/billwert/subscriptions","organizations_url":"https://api.github.com/users/billwert/orgs","repos_url":"https://api.github.com/users/billwert/repos","events_url":"https://api.github.com/users/billwert/events{/privacy}","received_events_url":"https://api.github.com/users/billwert/received_events","type":"User","site_admin":false},"body":"\"using the framework(s) specified in project.json and\"","created_at":"2016-03-31T22:54:32Z","updated_at":"2016-03-31T22:54:32Z","html_url":"https://github.com/dotnet/core-docs/pull/391#discussion_r58141067","pull_request_url":"https://api.github.com/repos/dotnet/core-docs/pulls/391","_links":{"self":{"href":"https://api.github.com/repos/dotnet/core-docs/pulls/comments/58141067"},"html":{"href":"https://github.com/dotnet/core-docs/pull/391#discussion_r58141067"},"pull_request":{"href":"https://api.github.com/repos/dotnet/core-docs/pulls/391"}}},"pull_request":{"url":"https://api.github.com/repos/dotnet/core-docs/pulls/391","id":64821312,"html_url":"https://github.com/dotnet/core-docs/pull/391","diff_url":"https://github.com/dotnet/core-docs/pull/391.diff","patch_url":"https://github.com/dotnet/core-docs/pull/391.patch","issue_url":"https://api.github.com/repos/dotnet/core-docs/issues/391","number":391,"state":"open","locked":false,"title":"Add CLI documentation","user":{"login":"blackdwarf","id":3115004,"avatar_url":"https://avatars.githubusercontent.com/u/3115004?v=3","gravatar_id":"","url":"https://api.github.com/users/blackdwarf","html_url":"https://github.com/blackdwarf","followers_url":"https://api.github.com/users/blackdwarf/followers","following_url":"https://api.github.com/users/blackdwarf/following{/other_user}","gists_url":"https://api.github.com/users/blackdwarf/gists{/gist_id}","starred_url":"https://api.github.com/users/blackdwarf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackdwarf/subscriptions","organizations_url":"https://api.github.com/users/blackdwarf/orgs","repos_url":"https://api.github.com/users/blackdwarf/repos","events_url":"https://api.github.com/users/blackdwarf/events{/privacy}","received_events_url":"https://api.github.com/users/blackdwarf/received_events","type":"User","site_admin":false},"body":"Added documentation for the CLI. It contains two main groups of\r\ndocuments:\r\n\r\n1. Conceptual docs - docs that deal with how the CLI works, what the\r\nare the portability types of applications and the overview.\r\n2. Reference docs - command line reference docs for each command as\r\nwell as the install script.\r\n\r\nAnother document is the DNX -> CLI migration document that is part of\r\nthis change.\r\n\r\nFixes #391 \r\nRelates to #322 \r\n\r\n/cc @mairaw @danroth27 @cartermp @richlander ","created_at":"2016-03-31T16:41:59Z","updated_at":"2016-03-31T22:54:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fe7a81caf393df29f7e9b1ded3b2035dd4d47db5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/core-docs/pulls/391/commits","review_comments_url":"https://api.github.com/repos/dotnet/core-docs/pulls/391/comments","review_comment_url":"https://api.github.com/repos/dotnet/core-docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/core-docs/issues/391/comments","statuses_url":"https://api.github.com/repos/dotnet/core-docs/statuses/773360eeb075b955b8e497fe9c4f4c44bdebc509","head":{"label":"blackdwarf:clidocs","ref":"clidocs","sha":"773360eeb075b955b8e497fe9c4f4c44bdebc509","user":{"login":"blackdwarf","id":3115004,"avatar_url":"https://avatars.githubusercontent.com/u/3115004?v=3","gravatar_id":"","url":"https://api.github.com/users/blackdwarf","html_url":"https://github.com/blackdwarf","followers_url":"https://api.github.com/users/blackdwarf/followers","following_url":"https://api.github.com/users/blackdwarf/following{/other_user}","gists_url":"https://api.github.com/users/blackdwarf/gists{/gist_id}","starred_url":"https://api.github.com/users/blackdwarf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackdwarf/subscriptions","organizations_url":"https://api.github.com/users/blackdwarf/orgs","repos_url":"https://api.github.com/users/blackdwarf/repos","events_url":"https://api.github.com/users/blackdwarf/events{/privacy}","received_events_url":"https://api.github.com/users/blackdwarf/received_events","type":"User","site_admin":false},"repo":{"id":35895436,"name":"core-docs","full_name":"blackdwarf/core-docs","owner":{"login":"blackdwarf","id":3115004,"avatar_url":"https://avatars.githubusercontent.com/u/3115004?v=3","gravatar_id":"","url":"https://api.github.com/users/blackdwarf","html_url":"https://github.com/blackdwarf","followers_url":"https://api.github.com/users/blackdwarf/followers","following_url":"https://api.github.com/users/blackdwarf/following{/other_user}","gists_url":"https://api.github.com/users/blackdwarf/gists{/gist_id}","starred_url":"https://api.github.com/users/blackdwarf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackdwarf/subscriptions","organizations_url":"https://api.github.com/users/blackdwarf/orgs","repos_url":"https://api.github.com/users/blackdwarf/repos","events_url":"https://api.github.com/users/blackdwarf/events{/privacy}","received_events_url":"https://api.github.com/users/blackdwarf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/blackdwarf/core-docs","description":"Experimenting with docs.","fork":true,"url":"https://api.github.com/repos/blackdwarf/core-docs","forks_url":"https://api.github.com/repos/blackdwarf/core-docs/forks","keys_url":"https://api.github.com/repos/blackdwarf/core-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blackdwarf/core-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blackdwarf/core-docs/teams","hooks_url":"https://api.github.com/repos/blackdwarf/core-docs/hooks","issue_events_url":"https://api.github.com/repos/blackdwarf/core-docs/issues/events{/number}","events_url":"https://api.github.com/repos/blackdwarf/core-docs/events","assignees_url":"https://api.github.com/repos/blackdwarf/core-docs/assignees{/user}","branches_url":"https://api.github.com/repos/blackdwarf/core-docs/branches{/branch}","tags_url":"https://api.github.com/repos/blackdwarf/core-docs/tags","blobs_url":"https://api.github.com/repos/blackdwarf/core-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blackdwarf/core-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blackdwarf/core-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/blackdwarf/core-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blackdwarf/core-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/blackdwarf/core-docs/languages","stargazers_url":"https://api.github.com/repos/blackdwarf/core-docs/stargazers","contributors_url":"https://api.github.com/repos/blackdwarf/core-docs/contributors","subscribers_url":"https://api.github.com/repos/blackdwarf/core-docs/subscribers","subscription_url":"https://api.github.com/repos/blackdwarf/core-docs/subscription","commits_url":"https://api.github.com/repos/blackdwarf/core-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/blackdwarf/core-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/blackdwarf/core-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/blackdwarf/core-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/blackdwarf/core-docs/contents/{+path}","compare_url":"https://api.github.com/repos/blackdwarf/core-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blackdwarf/core-docs/merges","archive_url":"https://api.github.com/repos/blackdwarf/core-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blackdwarf/core-docs/downloads","issues_url":"https://api.github.com/repos/blackdwarf/core-docs/issues{/number}","pulls_url":"https://api.github.com/repos/blackdwarf/core-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/blackdwarf/core-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/blackdwarf/core-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blackdwarf/core-docs/labels{/name}","releases_url":"https://api.github.com/repos/blackdwarf/core-docs/releases{/id}","deployments_url":"https://api.github.com/repos/blackdwarf/core-docs/deployments","created_at":"2015-05-19T16:47:30Z","updated_at":"2016-01-11T18:26:56Z","pushed_at":"2016-03-31T18:37:49Z","git_url":"git://github.com/blackdwarf/core-docs.git","ssh_url":"git@github.com:blackdwarf/core-docs.git","clone_url":"https://github.com/blackdwarf/core-docs.git","svn_url":"https://github.com/blackdwarf/core-docs","homepage":null,"size":10292,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dotnet:master","ref":"master","sha":"604341ea15f5bbf1e2771510e901c780a5459e57","user":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":35890081,"name":"core-docs","full_name":"dotnet/core-docs","owner":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotnet/core-docs","description":".NET Core documentation (work in progress).","fork":false,"url":"https://api.github.com/repos/dotnet/core-docs","forks_url":"https://api.github.com/repos/dotnet/core-docs/forks","keys_url":"https://api.github.com/repos/dotnet/core-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/core-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/core-docs/teams","hooks_url":"https://api.github.com/repos/dotnet/core-docs/hooks","issue_events_url":"https://api.github.com/repos/dotnet/core-docs/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/core-docs/events","assignees_url":"https://api.github.com/repos/dotnet/core-docs/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/core-docs/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/core-docs/tags","blobs_url":"https://api.github.com/repos/dotnet/core-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/core-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/core-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/core-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/core-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/core-docs/languages","stargazers_url":"https://api.github.com/repos/dotnet/core-docs/stargazers","contributors_url":"https://api.github.com/repos/dotnet/core-docs/contributors","subscribers_url":"https://api.github.com/repos/dotnet/core-docs/subscribers","subscription_url":"https://api.github.com/repos/dotnet/core-docs/subscription","commits_url":"https://api.github.com/repos/dotnet/core-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/core-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/core-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/core-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/core-docs/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/core-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/core-docs/merges","archive_url":"https://api.github.com/repos/dotnet/core-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/core-docs/downloads","issues_url":"https://api.github.com/repos/dotnet/core-docs/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/core-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/core-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/core-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/core-docs/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/core-docs/releases{/id}","deployments_url":"https://api.github.com/repos/dotnet/core-docs/deployments","created_at":"2015-05-19T15:13:32Z","updated_at":"2016-03-21T14:38:35Z","pushed_at":"2016-03-31T22:19:11Z","git_url":"git://github.com/dotnet/core-docs.git","ssh_url":"git@github.com:dotnet/core-docs.git","clone_url":"https://github.com/dotnet/core-docs.git","svn_url":"https://github.com/dotnet/core-docs","homepage":"http://dotnet.github.io/docs/index.html","size":14101,"stargazers_count":62,"watchers_count":62,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":76,"mirror_url":null,"open_issues_count":154,"forks":76,"open_issues":154,"watchers":62,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/core-docs/pulls/391"},"html":{"href":"https://github.com/dotnet/core-docs/pull/391"},"issue":{"href":"https://api.github.com/repos/dotnet/core-docs/issues/391"},"comments":{"href":"https://api.github.com/repos/dotnet/core-docs/issues/391/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/core-docs/pulls/391/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/core-docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/core-docs/pulls/391/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/core-docs/statuses/773360eeb075b955b8e497fe9c4f4c44bdebc509"}}}}