# Adding multi level commands using spf13 cobra

## March 12, 2017 by hacktohell

We can chain commands pretty simply, say you want to make an app streamer that has a sub command read and an sub-command of that called csv and json. You can use the cobra init to generate these separate ones,

Then go into the source file and hook up csv and json with the proper parent, in this case, readCmd.