[RESOLVED] Downloading Select Channel Folders through the Terminal



I am trying to put together a .sh file, which will take a fresh Linus-OS install and apply everything someone would need to create an offline server. This includes Kolibri, Kolibri content, as well as Kiwix serve and content. This issue I come across is with downloading channels to Kolibri. I am able to download the entire channel, but I cannot figure out how to download parts of a channel. On Kolibri through the super-admin controls when adding channels I can select specific content within the channel, is this something which is possible to do through the terminal?

To download the kolibri channels I am using the following terminal commands (in this case the code is for global digital library):

kolibri manage importchannel network 0e173fca6e9052f8a474a2fb84055faf
kolibri manage importcontent network 0e173fca6e9052f8a474a2fb84055faf

Technical details

  • Kolibri version: 0.15.1
  • Operating system: Linux Mint 20.3 Cinnamon
  • Browser: Fire Fox

Thank you,

Hi @Duncan_Zayachkowski,

I don’t believe this is possible with Kolibri’s current management commands. There is an alternative though!

If you aren’t familiar with Kolibri Studio yet, you may use Kolibri Studio to curate content from channels that are publicly available and importable to Kolibri, into a channel of your own. In this way, you may select only the folders and topics that you would like to import into your Kolibri instance(s) by importing the channel you’ve curated content into.


Hi @blaine,

Okay, thank you! I had a feeling the terminal command might not work that way, so thank you for letting me know and showing me an alternative. I will try that out.

Thanks again,

@Duncan_Zayachkowski I was wrong! It isn’t currently documented, but there is a way to import specific resources and a way to exclude resources. The importcontent command accepts arguments --node_ids and --exclude_node_ids which accept a comma separated list of IDs. You may execute to kolibri manage importcontent --help to see all options.

The easiest way to find a node ID is using Kolibri Studio. When you open a folder on Studio, the boxed portion of the URL in the image below is the node ID.