Edit on GitHub
Jump to docs navigation

Nut command / Database / database:import

Note: You are currently reading the documentation for Bolt 3.0. Looking for the documentation for Bolt 3.6 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:import command emport database records from a YAML or JSON file.

Usage

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

Options

Option Description
-f, --file=FILE A YAML or JSON file to use for import data. Must end with .yml, .yaml or .json (multiple values allowed)

Example

Importing records

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

WARNING THIS IS AN EXPERIMENTAL FEATURE

Are you sure you want to continue with the import? yes

Records imported from 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.