Bring Your AI
Use the Terminal
Open a command line in your workspace to sign in coding agents, run your app's tests, and look into problems.
On this page
The Terminal gives you a command line inside your workspace, the private environment where your coding agents work and your apps' development copies run. It's there for hands-on work: signing in a coding agent, running your app's tests, or looking into why something isn't working. Anyone in the workspace on an active paid plan can use it.
Open the Terminal
- Select Terminal in the sidebar. On a phone, it's under the More menu.
- To start in an app's folder, open the app and choose the Terminal action (Advanced development tools).
If Terminal is greyed out, your workspace isn't ready yet. Hover over it and a note says the Terminal becomes available when the workspace runtime is. You can follow progress under Environment Status in Settings > General.
Tabs and sessions
- Select + (New terminal tab) to open another tab. You can have up to 20.
- Your sessions keep running when you close the browser or move to another page. Come back to the Terminal and they're still there, with any command still running.
- If a tab stops responding, select Reconnect.
- If the same session is open in more than one place, only one can type at a time. Select Take control to type from this one. The others become view-only.
Good uses
- Sign in a coding agent with the command shown under Use Terminal on the Coding Agents page. See Connect and manage your coding agents.
- Run your app's tests or build to see a failure for yourself.
- Read logs or check how a setting is being picked up. Avoid printing secrets to the screen.
Keep your work safe
- Commit and push any change you want to keep to the app's repository. Builds and releases work from the repository, so files that only exist in the workspace aren't shipped, and they can be lost if the workspace is rebuilt.
- Changes you make here affect the development copy. Your live production app only changes when you release. See Release changes to production.
- 1904 starts and restarts your app for you. Use Restart app on the app's Configuration settings instead of starting your own copy of the server in a terminal tab.
- Don't change system settings, network settings, or the workspace's sign-in setup. They keep your apps and agents connected.
If the Terminal won't open
If you see Unable to open terminal, or the tab keeps saying it's retrying, select Reconnect. If it still fails, check Environment Status in Settings > General: a stopped workspace wakes up when work starts, so give it a minute and try again. If it keeps failing, contact support and mention the time you tried.