--no-browser: after you approve, the page shows a code to paste into the terminal.
Login expiry
A login stops working after 7 days without use. The 7 days count from the last command that used it, or from when you logged in if you never used it. Running a command that uses your login, such asdev or deploy, at least once a week keeps you logged in.
When a login has expired, commands that log you in, such as login, dev and deploy, start a new login. You don’t need to log out first. The MCP server does the same on its next tool call.
- In CI, the CLI can’t complete a login, so it fails and tells you to run
npx trigger.dev@latest login. To deploy from CI, use an environment API key inTRIGGER_ACCESS_TOKENinstead of a copied CLI login. See CI / GitHub Actions. - CLI versions before 4.8.4 show the server’s error but can’t start a new login over an expired one. Run
trigger.dev logout, thentrigger.dev login. - Logins made before login expiry was introduced (in 4.8.4 for self-hosted instances) don’t expire.
CLI_LOGIN_IDLE_TIMEOUT_DAYS sets the window (default 7), and 0 turns idle expiry off for new logins. Each login keeps the setting it was created with. See the webapp environment variables.
Options
Do not open the browser. Print the URL only, and finish the login by pasting the code shown after you approve.
Finish a pending login with the code shown in your browser. Use this after
--no-wait, or when the terminal can’t prompt for the code.Set your name after authorization. Only applies to a new account that has not set its details yet.
Common options
These options are available on most commands.The login profile to use. Defaults to the current profile, which is set by your last
login or switch (initially “default”).Override the default API URL. If not specified, it uses
https://api.trigger.dev. This can also be set via the TRIGGER_API_URL environment variable.The CLI log level to use. Options are
debug, info, log, warn, error, and none. This does not affect the log level of your trigger.dev tasks. Defaults to log.Opt-out of sending telemetry data. This can also be done via the
TRIGGER_TELEMETRY_DISABLED environment variable. Just set it to anything other than an empty string.
