---
title: "account export"
description: "Export account data (GDPR/CCPA)"
canonical: "https://pgbeam.com/docs/cli/account/export"
last-updated: "2026-09-14T19:37:21.000Z"
---

# account export

> Export account data (GDPR/CCPA)

URL: https://pgbeam.com/docs/cli/account/export

Export all account data as required by GDPR and CCPA regulations. Includes your user profile, organizations, projects, databases, active sessions, and audit logs. Use `--file` to write the full export to a JSON file, or `--json` to print the full export to stdout.

## Usage

## Options

Option

Description

Required

Default

`--file <value>`

Write the full export to a JSON file at this path instead of printing to stdout

No

-

All global options (`--token`, `--profile`,
`--project`, `--org`, `--json`, `--no-color`, `--no-trunc`, `--debug`) are
also available on this command.

## Examples

## Output

Without `--file` or `--json`, displays a summary showing counts of organizations, projects, databases, sessions, and audit logs. With `--file`, writes the full JSON export to the specified path. With `--json`, outputs the complete export object.