# CLI import not uploading annotations (only uploads images)

**URL:** https://discuss.roboflow.com/t/cli-import-not-uploading-annotations-only-uploads-images/1249
**Category:** 🤝  Community Help
**Created:** [January 8, 2023, 11:52pm UTC](https://discuss.roboflow.com/t/cli-import-not-uploading-annotations-only-uploads-images/1249 "2023-01-08T23:52:38Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Robert\_Shaw](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/robert_shaw/32/1024_2.png) [@Robert\_Shaw](https://discuss.roboflow.com/u/Robert_Shaw)
#### Post date: [January 8, 2023, 11:52pm UTC](https://discuss.roboflow.com/t/cli-import-not-uploading-annotations-only-uploads-images/1249/1 "2023-01-08T23:52:38Z")

</div>

This category is for question related to accounts on [https://app.roboflow.com/](https://app.roboflow.com/)

Please share the following so we may better assist you:

1. Project type (Object detection, Classification, Polygon, etc.); Object Detection
2. The operating system & browser you are using and their versions; Ubuntu, CLI
3. The screenshot of the error being triggered in your browser’s developer tools/console. Please copy/paste the url below to watch how to pull up your devtools

I am attempting to upload a dataset to Roboflow with the roboflow import cli command.

I downloaded a dataset from Universe with the following:

mkdir data-with-labels; cd data-with-labels; curl -L “[https://universe.roboflow.com/ds/YZbicMV8Z4?key=WrbJD7E7Ky](https://universe.roboflow.com/ds/YZbicMV8Z4?key=WrbJD7E7Ky)” \> roboflow.zip; unzip roboflow.zip; rm roboflow.zip; cd …

Then, I attempted to import the dataset with:

roboflow auth  
roboflow import data-with-labels/

This command uploaded the images, but not the annotations. Is there a way to upload annotations with the CLI?

---

<div class="post-metadata">

### Author: ![Mohamed](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/mohamed/32/62_2.png) [@Mohamed](https://discuss.roboflow.com/u/Mohamed)
#### Post date: [January 9, 2023, 4:09pm UTC](https://discuss.roboflow.com/t/cli-import-not-uploading-annotations-only-uploads-images/1249/2 "2023-01-09T16:09:52Z")

</div>

Hi @Robert_Shaw, you’ll need to update your command for upload. The command you’ve used will only upload images.

- [Command Line Interface - Roboflow](https://docs.roboflow.com/command-line-interface#upload-images-using-the-roboflow-cli)

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/c/c8b5461155f9a9d9c8b7572e6bd468c3cae962f1.png)

---

<div class="post-metadata">

### Author: ![Robert\_Shaw](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/robert_shaw/32/1024_2.png) [@Robert\_Shaw](https://discuss.roboflow.com/u/Robert_Shaw)
#### Post date: [January 9, 2023, 4:23pm UTC](https://discuss.roboflow.com/t/cli-import-not-uploading-annotations-only-uploads-images/1249/3 "2023-01-09T16:23:17Z")

</div>

Mohamed,

My dataset in the the YOLOv5 format, so the directory looks like:

data-with-labels/data.yaml  
data-with-labels/train/images  
data-with-labels/train/labels  
data-with-labels/valid/images  
data-with-labels/valid/labels  
data-with-labels/test/images  
data-with-labels/test/labels

My understanding is that the roboflow import command is designed to be used in this situation - is there any documentation on how to use the import command to do upload a dataset structured in the YOLOv5 format?

---

<div class="post-metadata">

### Author: ![Mohamed](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/mohamed/32/62_2.png) [@Mohamed](https://discuss.roboflow.com/u/Mohamed)
#### Post date: [January 9, 2023, 7:31pm UTC](https://discuss.roboflow.com/t/cli-import-not-uploading-annotations-only-uploads-images/1249/4 "2023-01-09T19:31:07Z")

</div>

I just downloaded one of my datasets to run the upload flow. I’ll create a video example of how it works.

---

<div class="post-metadata">

### Author: ![Mohamed](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/mohamed/32/62_2.png) [@Mohamed](https://discuss.roboflow.com/u/Mohamed)
#### Post date: [January 9, 2023, 8:49pm UTC](https://discuss.roboflow.com/t/cli-import-not-uploading-annotations-only-uploads-images/1249/5 "2023-01-09T20:49:09Z")

</div>

Hi @Robert_Shaw, I just attempted this with my own projects, and found the same issue you presented.

I’ve prepared and submitted a full bug report for this issue to our Product Team.

I’ve marked the bug as well so I can keep you up to date on the status.

---

<div class="post-metadata">

### Author: ![Robert\_Shaw](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/robert_shaw/32/1024_2.png) [@Robert\_Shaw](https://discuss.roboflow.com/u/Robert_Shaw)
#### Post date: [January 24, 2023, 12:32am UTC](https://discuss.roboflow.com/t/cli-import-not-uploading-annotations-only-uploads-images/1249/6 "2023-01-24T00:32:22Z")

</div>

Hello @Mohamed, any update on this?

---

<div class="post-metadata">

### Author: ![Mohamed](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/mohamed/32/62_2.png) [@Mohamed](https://discuss.roboflow.com/u/Mohamed)
#### Post date: [January 24, 2023, 12:34am UTC](https://discuss.roboflow.com/t/cli-import-not-uploading-annotations-only-uploads-images/1249/7 "2023-01-24T00:34:26Z")

</div>

It is working now - I actually just tested it again to confirm
