# DatoCMS WordPress Import CLI
DatoCMS CLI plugin to import a WordPress site into a DatoCMS project.
* [DatoCMS WordPress Import CLI](#datocms-wordpress-import-cli)
* [Usage](#usage)
* [Commands](#commands)
* [Development](#development)
# Usage
```sh-session
npm install -g @datocms/cli
datocms plugins:install @datocms/cli-plugin-wordpress
datocms wordpress:import --help
```
# Commands
* [`@datocms/cli-plugin-wordpress wordpress:import`](#datocmscli-plugin-wordpress-wordpressimport)
## `@datocms/cli-plugin-wordpress wordpress:import`
Imports a WordPress site into a DatoCMS project
```
USAGE
$ @datocms/cli-plugin-wordpress wordpress:import --wp-username --wp-password [--json] [--config-file
] [--profile ] [--api-token ] [--log-level NONE|BASIC|BODY|BODY_AND_HEADERS] [--log-mode
stdout|file|directory] [--wp-json-api-url | --wp-url ] [--autoconfirm] [--ignore-errors]
[--concurrency ]
FLAGS
--autoconfirm Automatically enters the affirmative response to all confirmation prompts, enabling the
command to execute without waiting for user confirmation. Forces the destroy of existing
"wp_*" models.
--concurrency= [default: 15] Maximum number of operations to be run concurrently
--ignore-errors Try to ignore errors encountered during import
--wp-json-api-url= The endpoint for your WordPress install (ex. https://www.wordpress-website.com/wp-json)
--wp-password= (required) WordPress password
--wp-url= A URL within a WordPress REST API-enabled site (ex. https://www.wordpress-website.com)
--wp-username= (required) WordPress username
GLOBAL FLAGS
--api-token= Specify a custom API key to access a DatoCMS project
--config-file= [default: ./datocms.config.json] Specify a custom config file path
--json Format output as json.
--log-level=