Creating a CKAN Extension Error: No such command 'create'

Creating a CKAN Extension Error: No such command 'create'

我正在他们的官方文档中创建一个 CKAN EXTENSION 基础。

https://docs.ckan.org/en/2.9/theming/templates.html#creating-a-ckan-extension

当我在这一步时,

ckan -c /etc/ckan/default/ckan.ini create -t ckanext-example_theme

我收到这个错误。 *

(default) root@ccgeo:/usr/lib/ckan/default/src# ckan -c /etc/ckan/default/ckan.ini create -t ckanext-example_theme 2021-10-27 02:27:45,515 INFO [ckan.cli] Using configuration file /etc/ckan/default/ckan.ini 2021-10-27 02:27:45,515 INFO [ckan.config.environment] Loading static files from public 2021-10-27 02:27:45,544 INFO [ckan.config.environment] Loading templates from /usr/lib/ckan/default/src/ckan/ckan/templates 2021-10-27 02:27:45,762 INFO [ckan.config.environment] Loading templates from /usr/lib/ckan/default/src/ckan/ckan/templates Usage: ckan [OPTIONS] COMMAND [ARGS]... Error: No such command 'create'. (default) root@ccgeo:/usr/lib/ckan/default/src#

文档有错误,应该是 ckan generate extension 作为正确的 CLI 命令 或者你的情况:

ckan -c /etc/ckan/default/ckan.ini generate extension -o *location-to-put-generated-template*