code: func cmdInit(params Parameters) *subcommands.Command {
  	return &subcommands.Command{
  		Advanced:  true,
  		UsageLine: "init [root dir] [options]",
  		ShortDesc: "sets up a new site root directory to install packages into",
  		LongDesc: "Sets up a new site root directory to install packages into.\n\n" +
  			"Uses current working directory by default.\n" +
  			"Unless -force is given, the new site root directory should be empty (or " +
  			"do not exist at all) and not be under some other existing site root. " +
  			"The command will create <root>/.cipd subdirectory with some " +
  			"configuration files. This directory is used by CIPD client to keep " +
  			"track of what is installed in the site root.",
  		CommandRun: func() subcommands.CommandRun {
  			c := &initRun{}
  			c.registerBaseFlags()
  			c.Flags.BoolVar(&c.force, "force", false, "Create the site root even if the directory is not empty or already under another site root directory.")
  			c.Flags.StringVar(&c.serviceURL, "service-url", params.ServiceURL, "Backend URL. Will be put into the site config and used for subsequent 'install' commands.")
  			c.Flags.StringVar(&c.cacheDir, "cache-dir", "", "Directory for shared cache")
  			return c
  		},
  	}
  }
docs: ////////////////////////////////////////////////////////////////////////////////
  // 'init' subcommand.