2.19. hammer content-import
从上游存档中导入内容。
Usage: hammer content-import [OPTIONS] SUBCOMMAND [ARG] ... Parameters: SUBCOMMAND Subcommand [ARG] ... Subcommand arguments Subcommands: library Imports a content archive to an organization's library lifecycle environment list, index View content view import histories version Imports a content archive to a content view version Options: -h, --help Print help
2.19.1. hammer content-import 库
将内容存档导入到机构的库生命周期阶段
Usage: hammer content-import library [OPTIONS] Options: --async Do not wait for the task --metadata-file METADATA_FILE Location of the metadata.json file. This is not required if the metadata.json file is already in the archive directory. --organization ORGANIZATION_NAME Organization name to search by --organization-id ORGANIZATION_ID Organization identifier --organization-label ORGANIZATION_LABEL Organization label to search by --organization-title ORGANIZATION_TITLE Organization title --path PATH Directory containing the exported Content View Version -h, --help Print help
2.19.2. hammer content-import list
查看内容视图导入历史记录
Usage: hammer content-import <list|index> [OPTIONS] Options: --content-view CONTENT_VIEW_NAME Content view name to search by --content-view-id CONTENT_VIEW_ID Content view identifier --content-view-version CONTENT_VIEW_VERSION_VERSION Content view version number --content-view-version-id CONTENT_VIEW_VERSION_ID Content view version identifier --fields FIELDS Show specified fields or predefined field sets only. (See below) Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --full-result FULL_RESULT Whether or not to show all results One of true/false, yes/no, 1/0. --id ID Content view version import history identifier --order ORDER Sort field and order, eg. 'id DESC' --organization ORGANIZATION_NAME Organization name to search by --organization-id ORGANIZATION_ID Organization identifier --organization-label ORGANIZATION_LABEL Organization label to search by --organization-title ORGANIZATION_TITLE Organization title --page PAGE Page number, starting at 1 --per-page PER_PAGE Number of results per page to return --search SEARCH Search string --type TYPE Import Types Possible value(s): 'complete', 'incremental' -h, --help Print help Predefined field sets: ------------------------|-----|---------|----- FIELDS | ALL | DEFAULT | THIN ------------------------|-----|---------|----- Id | x | x | x Path | x | x | Type | x | x | Content view version | x | x | Content view version id | x | x | Created at | x | x | Updated at | x | x | ------------------------|-----|---------|----- Search / Order fields: content_view_id integer content_view_version_id integer id integer type string
2.19.3. hammer content-import 版本
将内容存档导入到内容视图版本
Usage: hammer content-import version [OPTIONS] Options: --async Do not wait for the task --metadata-file METADATA_FILE Location of the metadata.json file. This is not required if the metadata.json file is already in the archive directory. --organization ORGANIZATION_NAME Organization name to search by --organization-id ORGANIZATION_ID Organization identifier --organization-label ORGANIZATION_LABEL Organization label to search by --organization-title ORGANIZATION_TITLE Organization title --path PATH Directory containing the exported Content View Version -h, --help Print help