Docs· Reference

Environment variables

View as Markdown

Inside a box

VariableDefault
HOME/home/user
USERuser
HOSTNAMElifoshown in the prompt
PATH/usr/bin:/bin
SHELL, TERM, EDITOR/bin/sh, xterm-256color, nano
NPM_REGISTRYhttps://registry.npmjs.orgwhere npm installs from
LIFO_CDNhttps://esm.shwhere Lifo packages load ES modules from
LIFO_CORS_PROXYhttp://localhost:3005/_cors?url=browser only: a proxy prefix for hosts that don't send CORS headers
LIFO_CORS_PROXY_HOSTSapi.expo.dev,exp.host,u.expo.devwhich hosts go through that proxy
LIFO_BASE_URLhttps://lifo.shthe site lifo login, whoami and tunnel use
LIFO_AUTH_TOKENa lifo.sh key to use instead of the box's own login (lifo-sh sets it)
LIFO_TUNNEL_URLfrom the sitethe tunnel server's WebSocket URL

Set them for one box with Sandbox.create({ env }), for a shell with export, or for one command with box.commands.run(cmd, { env }).

For the lifo-sh CLI

Variable
LIFO_BASE_URLthe site to log in to and open tunnels on (overrides the last login)
LIFO_TUNNEL_URLthe tunnel server's WebSocket URL, instead of asking the site
LIFO_NO_BROWSERdon't open a browser for login; print the link

Edit this page on GitHub