Edit on GitHub
Jump to docs navigation

Nut command / Database / database:export

Note: You are currently reading the documentation for Bolt 3.2. Looking for the documentation for Bolt 3.5 instead?

Note: This command is considered experimental, and its format may change over minor versions.

Note: This command does not handle taxonomy or relations.

Nut's database:export command exports the database records to a YAML or JSON file.

Usage

    php ./app/nut database:export [options]

Options

Option Description
-c, --contenttypes=CONTENTTYPES One or more ContentTypes to export records for. (multiple values allowed)
-f, --file=FILE A YAML or JSON file to use for export data. Must end with .yml, .yaml or .json

Example

Exporting "Pages" ContentType records

$ php ./app/nut database:export --file=my-site-export.json --contenttypes=pages

WARNING THIS IS AN EXPERIMENTAL FEATURE

Are you sure you want to continue with the export? yes
Database exported to my-site-export.json
Edit this page on GitHub
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on IRC.