code: func cmdEnsure(params Parameters) *subcommands.Command {
  	return &subcommands.Command{
  		UsageLine: "ensure [options]",
  		ShortDesc: "installs, removes and updates packages in one go",
  		LongDesc: "Installs, removes and updates packages in one go.\n\n" +
  			"Supposed to be used from scripts and automation. Alternative to 'init', " +
  			"'install' and 'remove'. As such, it doesn't try to discover site root " +
  			"directory on its own.",
  		CommandRun: func() subcommands.CommandRun {
  			c := &ensureRun{}
  			c.registerBaseFlags()
  			c.clientOptions.registerFlags(&c.Flags, params, withRootDir)
  			c.ensureFileOptions.registerFlags(&c.Flags, withEnsureOutFlag, withLegacyListFlag)
  			return c
  		},
  	}
  }
docs: ////////////////////////////////////////////////////////////////////////////////
  // 'ensure' subcommand.