lift hook

Manage the git pre-push deploy hook for automatic deployments on every git push, with monorepo support.

lift hook

Manage the git pre-push deploy hook. When installed, every git push automatically triggers lift push so you deploy with your normal git workflow. Supports monorepo setups by cd-ing into the correct subdirectory.

Subcommands

lift hook install

Install the pre-push hook that runs lift push on every git push.

lift hook install
 Installed pre-push hook (lift push runs on every git push)

lift hook remove

Remove the pre-push deploy hook.

lift hook remove
 Removed pre-push deploy hook

lift hook status

Check if the deploy hook is currently installed.

lift hook status
 Deploy hook is installed

Info: When running from a subdirectory, the hook automatically generates cd <subdir> && lift push so it works correctly in monorepo setups.

  • lift init -- Hook can be installed during init
  • lift push -- The command that the hook triggers