exp:ezcsvimport
Available before Exponential 6: the 4.x kernel had it already; the 4.x reference had no page for it.
Summary
Import content objects of a class below a node from a CSV file (--class, --creator)
Usage
./console exp:ezcsvimport [options] php bin/php/ezcsvimport.php [options]
Help
The output of ./console help exp:ezcsvimport (the script run with --help), without the standard options:
Usage: bin/php/ezcsvimport.php [OPTION]... [NODE] [FILE] Import content objects of a class below a node from a CSV file Example: ezcsvimport.php --class=article 2 articles.csv Options: --class=VALUE class identifier to create objects --creator=VALUE user id of imported objects creator --storage-dir=VALUE path to directory which will be added to the path of CSV elements
Options
| Option | Value | Description |
|---|---|---|
| --class | required | class identifier to create objects |
| --creator | required | user id of imported objects creator |
| --storage-dir | required | path to directory which will be added to the path of CSV elements |
Arguments
[node][file]
Standard options
Every script also takes the standard options of the script framework: --help, --quiet, --siteaccess, --debug, --colors, --no-colors, --logfiles, --no-logfiles, --verbose and --allow-root-user.
Source
bin/php/ezcsvimport.php, kernel/private/classes/commands/ezcsvimport.php
See also
Generated example: exp:ezcsvimport
Added to the reference for Exponential 6.0.15.
Contributors
- Graham Brookins Updated
Comments
Add a comment