node package manager


Koding KD CLI

Koding CLI Task Manager

This is cli tool for managing Koding Kites.

What is a Kite ?

Kites are simple processes that inter-communicates with Koding and other Kites.

For more details see: http://....


npm install -g kd

Register your host machine

kd register

you'll see

$ kd register
register: Hello ybrs!
register: Please visit the following URL to connect your
register: host to this computer.
register:    local/hnn91jkty8scm9momi51nc1sor7onri4hm5azhmncs5hhmy8nsu55ssssyssjsss
register: Waiting for you to connect the host.

simply visit the url in browser, then you'll see

register: Host connected! Thanks for registering, now I'm sure you are ybrs!

Create a kite and run it

kd kite create-worker kitename

now you can run the kite

cd kitename.kite
kd kite run

Then you can call kite's functions using console:{
    kiteName: "kitename",
    method: "helloWorld",
    withArgs: {name: 'hi'}
}, function() {

Create a server

kd kite create-server serverkite

you'll see output like:

$ kd kite run
kite: Kite has been compiled!
kite: Attempting to run serverkite
kite: Finding a free port...
kite: Server is running on
kite: Port found: 54282
kite: Publishing server...
server: downloading dependencies...
server: dependencies downloaded.
server: dependencies installing...
server: Listening and sharing with the name 'serverkite-1'. Please wait...
server: has something on it!
server: Started instance on 27334
kite: serverkite: Intra-Kite communication is ready
kite: serverkite: Kite is connected to system
server: .
server: your public url: {"host":""}

this registers your kite, to Koding and Koding proxies your kite to the world, so you can access the url from anywhere

Add unit tests to your Kite

When you create a kite, you will have a test directory in it. KD tool uses Mocha test library, to run the tests

kd kite test

Configuring the Kite

Kites have manifest.json files. They hold your kites' meta data, such as author information, name etc.