Useful Koha commands

Command Description
koha-common Create and manage Koha instances.
koha-create Create a new Koha instance.
koha-create-dirs Create dirs for a Koha instance.
koha-disable Disable a Koha instance.
koha-dump Dump all contents and configs for a Koha site.
koha-dump-defaults Create default contents from an existing Koha site.
koha-email-disable Turn off the email for a Koha instance.
koha-email-enable Turn on the email for a Koha instance.
koha-enable Enable a Koha instance. New instances are enabled by default. You only need this command if you have previously disabled a site with koha-disable.
koha-foreach Run a command for each Koha instance. Takes the same arguments as koha-list.
koha-list Lists Koha instances, optionally only those that are enabled or have email turned on.
koha-mysql Provide an interactive mysql shell set up for the specified koha instance.
koha-rebuild-zebra Rebuild the Zebra database for a Koha instance.
koha-remove Remove a Koha instance.
koha-reset-passwd Reset password for a user in a Koha instance.
koha-restart-zebra Restart Zebra for named Koha instances.
koha-restore Restore a Koha site from a dump (from koha-dump).
koha-run-backups Performs backups of the koha installations on the system, except an instance called demo.
koha-shell Gives you a shell with the user and environment set to make it easy to do koha operations.
koha-start-zebra Start Zebra for named Koha instances.
koha-stop-zebra Stop Zebra for named Koha instances.
koha-upgrade-schema Upgrade the DB schema for Koha instances. Done automatically on package upgrades.
koha-upgrade-to-3.4 Performs the necessary changes to upgrade a Koha system from 3.2 to 3.4. If no instance names are provided, this will run it on all of them.

For more commands, please visit
http://wiki.koha-community.org/wiki/Commands_provided_by_the_Debian_packages

Information courtesy: Pablo

10 comments:

  1. Thank u for the information.
    I updated it according to your comment.

    ReplyDelete
  2. Even more information, very useful!
    http://wiki.koha-community.org/wiki/Commands_provided_by_the_Debian_packages

    ReplyDelete
  3. Hi Sir,

    Need help

    koha-email-enable

    it says instancename missing

    I'm using KOHA 3.12 LIVE DVD

    ReplyDelete
  4. Hi sir i have installed Koha in Ubuntu but when I rebuild zebra on command line i receive one error message:

    1...............................................................................101.............................................................................201.............................................................................301.............................................................................401.............................................................................501.............................................................................601.............................................................................701...........................................Record length of 121262 is larger than the MARC spec allows (99999 bytes). at /usr/share/perl5/MARC/File/USMARC.pm line 313
    ........................
    Records exported: 768
    ====================
    REINDEXING zebra
    ====================
    09:52:14-09/01 zebraidx(2116) [warn] /etc/koha/zebradb/biblios/etc/dom-config-marc.xml: parsing of MARC record failed r=-1 length=12126
    09:52:14-09/01 zebraidx(2116) [warn] extract error: generic
    ====================
    CLEANING
    ====================





    ReplyDelete
    Replies
    1. Now searching works? Its possible to search newly added records?

      Delete
    2. sir please send me command for rebuild zebra and for crontab...

      praveenvasu.crl@gmail.com

      Delete
  5. hi,

    i am new user so that facing the issue in restoration the database in KOHA 3.14.11.

    ReplyDelete
  6. Vimar sir,

    I am finding following error while re-installing koha on ubuntu 14-04

    dpkg: error processing package koha-common (--configure):
    subprocess installed post-installation script returned error exit status 2
    Errors were encountered while processing:
    koha-common
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    Please help me to solve it.

    Sabu Antony
    DCSMAT, Vagamon

    ReplyDelete
  7. i am not able to create new instance with koha-create command
    This is the error msg

    Koha requires mpm_itk to be enabled within Apache in order to run.
    Typically this can be enabled with:

    sudo a2enmod mpm_itk

    ReplyDelete
    Replies
    1. https://wiki.koha-community.org/wiki/Installing_Multiple_Instances_of_Koha

      Delete