code: def install(
      ctx,
      state,
      **kwargs
  ):
      
      from ..core import do_install
  
      retcode = do_install(
          dev=state.installstate.dev,
          three=state.three,
          python=state.python,
          pypi_mirror=state.pypi_mirror,
          system=state.system,
          lock=not state.installstate.skip_lock,
          ignore_pipfile=state.installstate.ignore_pipfile,
          skip_lock=state.installstate.skip_lock,
          requirements=state.installstate.requirementstxt,
          sequential=state.installstate.sequential,
          pre=state.installstate.pre,
          code=state.installstate.code,
          deploy=state.installstate.deploy,
          keep_outdated=state.installstate.keep_outdated,
          selective_upgrade=state.installstate.selective_upgrade,
          index_url=state.index,
          extra_index_url=state.extra_index_urls,
          packages=state.installstate.packages,
          editable_packages=state.installstate.editables,
      )
      if retcode:
          ctx.abort()
docs: Installs provided packages and adds them to Pipfile, or (if no packages are given), installs all packages from Pipfile.