Skip to content

Instantly share code, notes, and snippets.

@iam4x
Created September 1, 2026 07:30
Show Gist options
  • Select an option

  • Save iam4x/0aeecae50d4f7d56dbc8a46fb9f2733d to your computer and use it in GitHub Desktop.

Select an option

Save iam4x/0aeecae50d4f7d56dbc8a46fb9f2733d to your computer and use it in GitHub Desktop.
Update t3@nightly service
#!/bin/bash
npx -y t3@nightly service update
systemctl --user stop t3code.service
version="$(npx -y t3@nightly --version | sed 's/^t3 v//')"
cd ~/.t3/runtime/versions/$version && \
npm install-scripts approve node-pty && \
npm install-scripts approve msgpackr-extract && \
npm rebuild node-pty msgpackr-extract
sed -i '/Environment=T3_BOOT_SERVICE_UNIT=t3code.service/a Environment=T3CODE_HOST=0.0.0.0' \
~/.config/systemd/user/t3code.service
systemctl --user daemon-reload
systemctl --user restart t3code.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment