# Yakut file commands

**URL:** <https://forum.opencyphal.org/t/yakut-file-commands/1815>\
**Category:** CLI tools (Cynic/Yakut)\
**Created:** [January 13, 2023, 2:03pm UTC](https://forum.opencyphal.org/t/yakut-file-commands/1815 "2023-01-13T14:03:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergey](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/sergey/32/1300_2.png) [@Sergey](https://forum.opencyphal.org/u/Sergey)\
**Post date:** [January 13, 2023, 2:03pm UTC](https://forum.opencyphal.org/t/yakut-file-commands/1815/1 "2023-01-13T14:03:22Z")

</div>

Hello! I’m using following yakut command:

```auto
yakut call 4 uavcan.file.read 0 "/file"

```

and have a problem “Error: Got unexpected extra argument (/file)”  
What should be corrected request command for reading file from UAVCAN?

Thanks you!

---

<div class="post-metadata">

**Author:** ![pavel.kirienko](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/pavel.kirienko/32/9_2.png) [@pavel.kirienko](https://forum.opencyphal.org/u/pavel.kirienko)\
**Post date:** [January 13, 2023, 2:07pm UTC](https://forum.opencyphal.org/t/yakut-file-commands/1815/2 "2023-01-13T14:07:07Z")

</div>

The YAML field spec should be provided in one argument exactly and be a valid YAML document:

```auto
yakut call 4 uavcan.file.read '[0, "/file"]'

```

You can also specify the fields manually:

```auto
yakut call 4 uavcan.file.read '{offset: 0, path: "/file"}'

```

or even:

```auto
yakut call 4 uavcan.file.read '{offset: 0, path: {path: "/file"}}'

```

---

<div class="post-metadata">

**Author:** ![Sergey](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/sergey/32/1300_2.png) [@Sergey](https://forum.opencyphal.org/u/Sergey)\
**Post date:** [January 13, 2023, 2:15pm UTC](https://forum.opencyphal.org/t/yakut-file-commands/1815/3 "2023-01-13T14:15:47Z")

</div>

Thanks you, but corrected following code with " instead ':

```auto
yakut call 4 uavcan.file.read "[0, '/file']"

```
