Home > Back-end >  Creating a CKAN Extension Error: No such command 'create'
Creating a CKAN Extension Error: No such command 'create'

Time:10-28

I'm Creating a CKAN EXTENSION base in their official documentation.

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

When I'm in this step,

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

I got this error. *

(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#

CodePudding user response:

There is an error in the docs, it should be ckan generate extension as correct CLI command or in your case:

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

  • Related