---
title: "Export blog posts using Confluence CLI"
canonical: "https://support.appfire.com/space/SUPPORT/89142760/Export%20blog%20posts%20using%20Confluence%20CLI"
format: markdown
---
<span style="color: #333333">This article explains how to export blogs using Confluence CLI. </span>

## <span style="color: #333333">Instructions</span>

<span style="color: #333333">Use the </span>***<span style="color: #333333">exportPage</span>***<span style="color: #333333"> CLI action to export a blog from the space.</span>

<span style="color: #333333">The example </span><span style="color: #333333">below enables</span><span style="color: #333333"> you to export the blog with id = 720927 from the </span>*<span style="color: #333333">SPAC</span>*<span style="color: #333333"> space to PDF. </span>

```
--action exportPage --space "SPAC" --id "720927" --file "Space.pdf" --exportType "PDF"
```

**<span style="color: #333333">Output:</span>**

<span style="color: #333333">The output of the PDF export of the blog with the content:</span>

![image](media://c76f2726-9ccd-4077-9c48-9493be8c6bb3)

<span style="color: #333333">The parameters used in the above action are:</span>

- **<span style="color: #333333">space:</span>**<span style="color: #333333"> Name of the space.</span>
- **<span style="color: #333333">id:</span>**<span style="color: #333333"> Id of the blog.</span>
- **<span style="color: #333333">exportType</span>**<span style="color: #333333">: Indicated the type of export the blog post should be in.</span>
- **<span style="color: #333333">file: </span>**<span style="color: #333333">Path/name to file of result output.</span>


> ℹ️ <span style="color: #333333">To get an ID of the blog, navigate to </span>***<span style="color: #333333">Ellipsis > Page Information</span>***<span style="color: #333333"> in the respective blog as shown below:</span>  
> ℹ️   
> ℹ️ > Macro (inline-media-image)