From def4ddb31e7c7e9e3f2fd81e2b43a58dd7898866 Mon Sep 17 00:00:00 2001 From: Justin Alex Paramanandan <1155821+jusuchin85@users.noreply.github.com> Date: Wed, 13 Sep 2023 22:15:50 +1000 Subject: [PATCH] [Improvement][GHES]: Update `curl` command to download reports (#42003) Co-authored-by: Matt Pollard --- .../site-admin-dashboard.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/content/admin/administering-your-instance/administering-your-instance-from-the-web-ui/site-admin-dashboard.md b/content/admin/administering-your-instance/administering-your-instance-from-the-web-ui/site-admin-dashboard.md index 26cd70cbb3..da02e124d0 100644 --- a/content/admin/administering-your-instance/administering-your-instance-from-the-web-ui/site-admin-dashboard.md +++ b/content/admin/administering-your-instance/administering-your-instance-from-the-web-ui/site-admin-dashboard.md @@ -58,7 +58,10 @@ You can also access these reports programmatically via standard HTTP authenticat For example, here is how you would download the "all users" report in a `curl` command: ```shell -curl -L -u USERNAME:TOKEN http(s)://HOSTNAME/stafftools/reports/all_users.csv +curl --remote-name \ + --location \ + --user 'USERNAME:TOKEN' \ + http(s)://HOSTNAME/stafftools/reports/all_users.csv ``` To access the other reports programmatically, replace `all_users` with `active_users`, `dormant_users`, `suspended_users`, `all_organizations`, or `all_repositories`.