Ready to get started?

Download a free trial of the Bugzilla Cmdlets to get started:

 Download Now

Learn more:

Bugzilla Icon Bugzilla Cmdlets

An easy-to-use set of PowerShell Cmdlets offering real-time access to Bugzilla data. The Cmdlets allow users to easily read, write, update, and delete live data - just like working with SQL server.

Pipe Bugzilla Data to CSV in PowerShell



Use standard PowerShell cmdlets to access Bugzilla tables.

The CData Cmdlets Module for Bugzilla is a standard PowerShell module offering straightforward integration with Bugzilla. Below, you will find examples of using our Bugzilla Cmdlets with native PowerShell cmdlets.

Creating a Connection to Your Bugzilla Data

You can authenticate to your Bugzilla account using two parameters:

  • URL: The URL of your Bugzilla developer's page (the Home page).
  • ApiKey: API Keys can be generated from the Preferences -> API Keys section of your Bugzilla developer's page.

$conn = Connect-Bugzilla  -Url "$Url" -APIKey "$APIKey"

Selecting Data

Follow the steps below to retrieve data from the Bugs table and pipe the result into to a CSV file:

Select-Bugzilla -Connection $conn -Table Bugs | Select -Property * -ExcludeProperty Connection,Table,Columns | Export-Csv -Path c:\myBugsData.csv -NoTypeInformation

You will notice that we piped the results from Select-Bugzilla into a Select-Object cmdlet and excluded some properties before piping them into an Export-Csv cmdlet. We do this because the CData Cmdlets append Connection, Table, and Columns information onto each "row" in the result set, and we do not necessarily want that information in our CSV file.

The Connection, Table, and Columns are appended to the results in order to facilitate piping results from one of the CData Cmdlets directly into another one.