Create init command
This is only the implementation and tests of the init command.
The use of this in other functions would be in a separate MR
This is only the implementation and tests of the init command.
The use of this in other functions would be in a separate MR