# I need help, can anyone help me?

**URL:** <https://forum.gitea.com/t/i-need-help-can-anyone-help-me/6849>\
**Category:** Install/Maintain/Configure\
**Created:** [March 10, 2023, 5:32pm UTC](https://forum.gitea.com/t/i-need-help-can-anyone-help-me/6849 "2023-03-10T17:32:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DarkiT](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/darkit/32/3507_2.png) [@DarkiT](https://forum.gitea.com/u/DarkiT)\
**Post date:** [March 10, 2023, 5:32pm UTC](https://forum.gitea.com/t/i-need-help-can-anyone-help-me/6849/1 "2023-03-10T17:32:09Z")

</div>

I have a private project and have released a tag of v1.0.0. Now I want to download the tar.gz compressed file of this tag using curl. Can you please tell me how to write the curl command for this? I have already created a token for authentication, but it doesn’t seem to work.

curl -H “Authorization: token \<token\>” -L -o tag.tar.gz\<tar.gz-archive-url\>

---

<div class="post-metadata">

**Author:** ![jake](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@jake](https://forum.gitea.com/u/jake)\
**Post date:** [March 11, 2023, 3:44pm UTC](https://forum.gitea.com/t/i-need-help-can-anyone-help-me/6849/2 "2023-03-11T15:44:18Z")

</div>

I think using the API to download the archive would be better. I’m not sure that the templated pages work with the `Authorization` header.

Here’s an example using the latest repo I saw on [try.gitea.io](http://try.gitea.io) (see [API docs](https://try.gitea.io/api/swagger#/repository/repoGetArchive)):

```auto
curl -X 'GET' \
  'https://try.gitea.io/api/v1/repos/petrus7/mailctl/archive/main.tar.gz' \
  -H 'Authorization: token your_token_here' \
  -o tag.tar.gz

```

This will download the archive for petrus7’s mailctl repo targeting the main branch. You should be able to replace `main` with a tag name like `v1.0.0`.
