Skip to main content

Terminal guide

Find the error the dashboard cannot explain

Use a workspace terminal to identify the app state and collect a useful diagnostic without changing system setup.

3 min readUpdated Start the guide

Use Terminal when a dashboard message does not explain a failure or when connection setup explicitly asks for a native login command. Start with commands that identify the app and its current state, then run only the diagnostic needed for the question.

On this page

Requirements

Before you start

Make sure you have these in place before following the steps:

  • An active paid workspace with a ready runtime and permission to use Terminal.
  • The app you intend to inspect and its documented test or build instructions.
  • Enough shell familiarity to distinguish a read-only check from a command that changes files or services.
The file review interface with a sample validation change.
Review the changed file and its diff before submitting. Example code and task data. Open full-size screenshot
Step 1 of 6

Open Terminal in the intended app

Open the app and choose Terminal under its advanced development tools to start in its folder. You can also use Terminal from navigation. Confirm the location before running an app command; a generic terminal session may not begin in the directory you expect.

Step 2 of 6

Identify the directory and Git state

Run a few read-only checks before making assumptions about the working copy. These commands identify where you are, which branch is active, and whether local files differ. Review their output without copying private filenames or customer content into a public report.

Read-only starting checks
pwd
git branch --show-current
git status --short
git diff --stat
Step 3 of 6

Read the app's own instructions

Look up the relevant test or build command in the repository's instructions. For an npm app, npm run lists available scripts without selecting a test for you. Do not install a second test runner or start a parallel app server simply because a familiar command is absent.

Step 4 of 6

Run one bounded diagnostic

Choose the command that answers the actual question, such as the focused validation test named in the app's instructions. Capture the command, exit result, and the first useful error. Avoid printing environment files, authentication stores, or full logs that may contain secrets.

Step 5 of 6

Give the task the error and its context

Return to the app task and provide the command, sanitized error, and expected result. State whether you changed any files manually. This lets the agent investigate the same failure without assuming that a terminal-only edit was already committed or released.

Step 6 of 6

Leave the workspace in a known state

Read Git status again after a command that may generate files. Keep useful changes through the reviewed repository workflow; local files alone are not a release or a durable backup. Use the app's Restart app control for managed restarts instead of changing system or network configuration in the shell.

Check the result

  • You know the app directory, branch, and local change state.
  • One relevant diagnostic has a recorded command and sanitized result.
  • The task has enough evidence to continue, and no unreviewed system changes were made.

Troubleshooting

The terminal is blank, disconnected, or view-only.

Use Reconnect for a stale connection. If another client owns input, Take control makes this client the operator. Avoid opening duplicate tasks merely to get a second shell.

Terminal is unavailable or will not open.

Check Environment Status and wait for the runtime to become ready. If retries continue failing, record the time and the displayed error for support without including credentials.

Availability and limits

  • The terminal can affect development files and shared services; it is not a separate safety boundary.
  • Closing the browser does not necessarily stop its process. Development edits do not change production until the normal release workflow completes.

Related documentation

Start with an idea, or start with what you have.

Use AI supplied by 1904, or connect the subscription you already pay for.