# How to manipulate itksnap workspace file(.itksnap) via itksnap command line tool (itksnap-wt)?

**URL:** https://discourse.itk.org/t/how-to-manipulate-itksnap-workspace-file-itksnap-via-itksnap-command-line-tool-itksnap-wt/5699
**Category:** Beginner Questions
**Created:** [February 13, 2023, 3:46am UTC](https://discourse.itk.org/t/how-to-manipulate-itksnap-workspace-file-itksnap-via-itksnap-command-line-tool-itksnap-wt/5699 "2023-02-13T03:46:01Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sterben\_01](https://discourse.itk.org/user_avatar/discourse.itk.org/sterben_01/32/3181_2.png) [@Sterben\_01](https://discourse.itk.org/u/Sterben_01)
#### Post date: [February 13, 2023, 3:46am UTC](https://discourse.itk.org/t/how-to-manipulate-itksnap-workspace-file-itksnap-via-itksnap-command-line-tool-itksnap-wt/5699/1 "2023-02-13T03:46:01Z")

</div>

Hi!  
I want to manipulate itksnap workspace file(.itksnap) via itksnap command line tool (itksnap-wt).  
The first step is try to add another .nrrd image in to a workspace file. I trid this command:

```auto
itksnap-wt -i 1only.itksnap -layers-add-anat 2.nrrd

```

It give me this result

```auto
INFO: picked layer Layers.Layer[001]

```

But it still only has one layer:

```auto
itksnap-wt -i 1only.itksnap -layers-list
2> Layer Role Nickname Filename Tags  
2> 000 Main /home/ziqi/Desktop/ITK_PROJ/build/1.nrrd        

```

Did I do something wrong?

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [February 13, 2023, 3:49pm UTC](https://discourse.itk.org/t/how-to-manipulate-itksnap-workspace-file-itksnap-via-itksnap-command-line-tool-itksnap-wt/5699/2 "2023-02-13T15:49:58Z")

</div>

This question is better posted to ITK-SNAP [users mailing list](https://groups.google.com/g/itksnap-users).
