# cob-cli init command

cob-cli init <servername>

The init command initializes CoB a server in the user's machine, with the specified <servername>. This server is nothing more than a git repository with a specific structure that is cloned into the machine. This repository is placed in a folder server_<servername>, which is in turn placed in the folder the user is running the command from.

If a repository with the name server_<servername> exists under the Gitlab account (by default, CoB), it first checks whether a user has access to it through ssh and if so, clones the repository through https.

If the repository does not exist, then cob-cli assumes that this is a new server being created with that name. When it does, it will connect to the server machine (located at <servername>.cultofbits.com) and initiliaze the standard CoB server structure there - followed by copying/cloning that structure onto the user's machine. In the end, it will create a repository in the GitLab account (by default, CoB's). Therefore, to run this command the user requires both access to the server machine and gitlab.

TIP

cob-cli does not warn you if you do not have access to GitLab. Therefore, if it does not find a repository but you know it exists, it might mean that you do not have access - and cob-cli will assume this is a new server.

# Options

-a, --repoaccount <account url> 
			Specify git account to use (default: "[email protected]:cob/")
			
-V, --verbose 
			Verbose execution of tasks
			
-h, --help
			Display help for command