For AI agents: see llms.txt for the complete documentation index. Markdown versions are available by adding .md to a page URL or requesting Accept: text/markdown.
npx convex export
Export data, and optionally file storage, from your Convex deployment to a ZIP file downloadable from Convex. Without --path, create an export and download it later from the dashboard link.
- Create an export without downloading:
npx convex export - Download to a directory:
npx convex export --path dir/ - Download as a ZIP file:
npx convex export --path snapshot.zip - Include file storage:
npx convex export --include-file-storage --path dir/
By default, this exports from your dev deployment.
See the data export guide (https://docs.convex.dev/database/import-export/export) for details and use cases.
Syntax
npx convex export [options]
Options
--path <zipFilePath>If provided, download the export to a ZIP file at this path. If omitted, only a link is provided
--include-file-storageIncludes stored files (https://dashboard.convex.dev/deployment/files) in a _storage folder within the ZIP file
--prodExport data from this project's default production deployment.
--deployment <deployment>Export data from a specific deployment. Accepts:
- a deployment name (e.g. joyful-capybara-123)
- a deployment reference (e.g. dev/james, staging)
dev(for your personal dev deployment)prod(for your project’s default production deployment)local(for your local dev deployment). You can also select deployments in other projects withproject-slug:referenceorteam-slug:project-slug:reference.