Feat: Print sandbox inspect url on sandbox spawn - #841
Conversation
🦋 Changeset detectedLatest commit: f132029 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
@ben-fornefeld can you use team slug instead of team ID? |
that would probably require a re-auth. will check tomorrow! |
|
The auth command needs to be changed in order to retrieve the slug as well as the team id, but currently signed teams will see the their team id in the link (since the slug was not fetched before). |
|
@mishushakov i have an idea how to make this logic not dependent on the client side at all. i will just check in the dashboard via wdyt? |
|
we should try this! |
- Introduced a new utility function `printDashboardSandboxInspectUrl` to streamline the process of generating and printing the sandbox inspection URL. - Updated the `createCommand` function to utilize the new utility instead of the previous direct URL construction method. - Added a new constant `DASHBOARD_BASE` for better URL management.
done. tested on the following pr/preview: e2b-dev/dashboard#141 |
|
NOTE: this pr can be reviewed already, but merging needs to be blocked until e2b-dev/dashboard#141 is deployed. |
Package ArtifactsBuilt from 420313c. Download artifacts from this workflow run. JS SDK ( npm install ./e2b-2.12.2-feat-print-sandbox-inspect-url-on-e2b-sbx-spawn-e2b-2592.0.tgzCLI ( npm install ./e2b-cli-2.7.1-feat-print-sandbox-inspect-url-on-e2b-sbx-spawn-e2b-2592.0.tgzPython SDK ( pip install ./e2b-2.13.2+feat.print.sandbox.inspect.url.on.e2b.sbx.spawn.e2b.2592-py3-none-any.whl |
This PR updates the sandbox spawn process to print the inspect URL to the console when a new sandbox is created using
e2b sbx spawnore2b sbx create. This makes it easier for users to access and debug new sandboxes directly after creation.Note
Low Risk
Low risk: primarily adds extra CLI output and URL construction with env-configurable base; no changes to sandbox lifecycle or auth logic.
Overview
Prints a Dashboard inspection link when connecting to or creating a sandbox. Both
sandbox connectandsandbox createnow output a terminal-clickable E2B Dashboard Inspect Sandbox URL immediately after obtaining thesandboxId.Adds
DASHBOARD_BASE/SANDBOX_INSPECT_URL(env-overridable viaE2B_DASHBOARD_BASE/E2B_DOMAIN) and a newprintDashboardSandboxInspectUrlhelper to format and print the link, plus a changeset bump for@e2b/cli.Written by Cursor Bugbot for commit f132029. This will update automatically on new commits. Configure here.