{"meta":{"title":"Downloading workflow artifacts","intro":"You can download archived artifacts before they automatically expire.","product":"GitHub Actions","breadcrumbs":[{"href":"/en/actions","title":"GitHub Actions"},{"href":"/en/actions/how-tos","title":"How-tos"},{"href":"/en/actions/how-tos/manage-workflow-runs","title":"Manage workflow runs"},{"href":"/en/actions/how-tos/manage-workflow-runs/download-workflow-artifacts","title":"Download workflow artifacts"}],"documentType":"article"},"body":"# Downloading workflow artifacts\n\nYou can download archived artifacts before they automatically expire.\n\nBy default, GitHub stores build logs and artifacts for 90 days, and you can customize this retention period, depending on the type of repository. For more information, see [Managing GitHub Actions settings for a repository](/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#configuring-the-retention-period-for-github-actions-artifacts-and-logs-in-your-repository).\n\nRead access to the repository is required to perform these steps.\n\n<div class=\"ghd-tool webui\">\n\n1. On GitHub, navigate to the main page of the repository.\n2. Under your repository name, click **<svg version=\"1.1\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" class=\"octicon octicon-play\" aria-label=\"play\" role=\"img\"><path d=\"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm4.879-2.773 4.264 2.559a.25.25 0 0 1 0 .428l-4.264 2.559A.25.25 0 0 1 6 10.559V5.442a.25.25 0 0 1 .379-.215Z\"></path></svg> Actions**.\n\n   ![Screenshot of the tabs for the \"github/docs\" repository. The \"Actions\" tab is highlighted with an orange outline.](/assets/images/help/repository/actions-tab-global-nav-update.png)\n3. In the left sidebar, click the workflow you want to see.\n\n   ![Screenshot of the left sidebar of the \"Actions\" tab. A workflow, \"CodeQL,\" is outlined in dark orange.](/assets/images/help/actions/superlinter-workflow-sidebar.png)\n4. From the list of workflow runs, click the name of the run to see the workflow run summary.\n5. In the \"Artifacts\" section, click the artifact you want to download.\n\n   ![Screenshot of the \"Artifacts\" section of a workflow run. The name of an artifact generated by the run, \"artifact,\" is outlined in orange.](/assets/images/help/repository/artifact-drop-down-updated.png)\n\n</div>\n\n<div class=\"ghd-tool cli\">\n\n> \\[!NOTE]\n> To learn more about GitHub CLI, see [About GitHub CLI](/en/github-cli/github-cli/about-github-cli).\n\nGitHub CLI will download each artifact into separate directories based on the artifact name. If only a single artifact is specified, it will be extracted into the current directory.\n\nTo download all artifacts generated by a workflow run, use the `run download` subcommand. Replace `run-id` with the ID of the run that you want to download artifacts from. If you don't specify a `run-id`, GitHub CLI returns an interactive menu for you to choose a recent run.\n\n```shell\ngh run download RUN_ID\n```\n\nTo download a specific artifact from a run, use the `run download` subcommand. Replace `run-id` with the ID of the run that you want to download artifacts from. Replace `artifact-name` with the name of the artifact that you want to download.\n\n```shell\ngh run download RUN_ID -n ARTIFACT_NAME\n```\n\nYou can specify more than one artifact.\n\n```shell\ngh run download RUN_ID> -n ARTIFACT_NAME-1 -n ARTIFACT_NAME-2\n```\n\nTo download specific artifacts across all runs in a repository, use the `run download` subcommand.\n\n```shell\ngh run download -n ARTIFACT_NAME-1 ARTIFACT_NAME-2\n```\n\n</div>"}