code: def sync(
      ctx,
      state,
      bare=False,
      user=False,
      unused=False,
      **kwargs
  ):
      
      from ..core import do_sync
  
      retcode = do_sync(
          ctx=ctx,
          dev=state.installstate.dev,
          three=state.three,
          python=state.python,
          bare=bare,
          dont_upgrade=(not state.installstate.keep_outdated),
          user=user,
          clear=state.clear,
          unused=unused,
          sequential=state.installstate.sequential,
          pypi_mirror=state.pypi_mirror,
      )
      if retcode:
          ctx.abort()
docs: Installs all packages specified in Pipfile.lock.