# CLI or script based paraview execution

**URL:** https://discourse.paraview.org/t/cli-or-script-based-paraview-execution/11047
**Category:** ParaView Support
**Tags:** python
**Created:** [December 21, 2022, 2:36am UTC](https://discourse.paraview.org/t/cli-or-script-based-paraview-execution/11047 "2022-12-21T02:36:30Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![fieldofnodes](https://discourse.paraview.org/user_avatar/discourse.paraview.org/fieldofnodes/32/10605_2.png) [@fieldofnodes](https://discourse.paraview.org/u/fieldofnodes)
#### Post date: [December 21, 2022, 2:36am UTC](https://discourse.paraview.org/t/cli-or-script-based-paraview-execution/11047/1 "2022-12-21T02:36:30Z")

</div>

Hi all,

I have been using ParaView lightly for a few years.

I want to make a process more automated.

Basically I run a script in c++ and get two .pvd files that I use with a .psvm file. I have multiple files and I want to basically skip the paraview analysis and just save the data as an animation.

I would like to do this automatically or from bash/python or some other CLI type thing.

Is this possible ?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [December 21, 2022, 7:55am UTC](https://discourse.paraview.org/t/cli-or-script-based-paraview-execution/11047/2 "2022-12-21T07:55:36Z")

</div>

Hi @fieldofnodes

Yes, use pvpython for that.

[https://kitware.github.io/paraview-docs/latest/python/](https://kitware.github.io/paraview-docs/latest/python/)

Do not hesitate if you have follow up question, you will probably want to use `OpenData` and `SaveAnimation`.

---

<div class="post-metadata">

### Author: ![fieldofnodes](https://discourse.paraview.org/user_avatar/discourse.paraview.org/fieldofnodes/32/10605_2.png) [@fieldofnodes](https://discourse.paraview.org/u/fieldofnodes)
#### Post date: [February 19, 2023, 7:11pm UTC](https://discourse.paraview.org/t/cli-or-script-based-paraview-execution/11047/3 "2023-02-19T19:11:30Z")

</div>

Thanks.

I can execute some simple python code in the viewer.

I have a question.

I want to load a `psvm` file along with two other `pvd` files, then I want to save the animation. How can I do this with the python window?

I am keen to write a bash script where I can input the `psvm` file, the two `pvd` files and the out filename and be able to replicate this process when ever I have a new animation.

Any advice on this?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 20, 2023, 8:05am UTC](https://discourse.paraview.org/t/cli-or-script-based-paraview-execution/11047/4 "2023-02-20T08:05:11Z")

</div>

> [@fieldofnodes](#):
>
> I want to load a `psvm` file along with two other `pvd` files,

`LoadState`

> then I want to save the animation

`SaveAnimation`
