Skip to content

feat (cli): adds info command to get sandbox info#1214

Open
matthewlouisbrockman wants to merge 8 commits intomainfrom
cli-supports-info
Open

feat (cli): adds info command to get sandbox info#1214
matthewlouisbrockman wants to merge 8 commits intomainfrom
cli-supports-info

Conversation

@matthewlouisbrockman
Copy link
Contributor

@matthewlouisbrockman matthewlouisbrockman commented Mar 19, 2026

CLI now supports the info command that mirrors the python/js getInfo()

usage:

$ e2b sandbox info xxx --format json
{
  "sandboxId": "xxx",
  "templateId": "xxx",
  "name": "stdin",
  "metadata": {},
  "envdVersion": "0.4.3",
  "startedAt": "2026-03-19T01:32:28.055Z",
  "endAt": "2026-03-19T01:37:28.055Z",
  "state": "running",
  "cpuCount": 2,
  "memoryMB": 1024
}
$ e2b sandbox info xxx
Sandbox info for xxx:
Sandbox ID: xxx
Template ID: xxx
Alias: stdin
State: running
Started at: 3/18/2026, 6:32:28 PM
End at: 3/18/2026, 6:37:28 PM
vCPUs: 2
RAM MiB: 1024
Envd version: xxx
metadata: {}

Note

Low Risk
Low risk: adds a new CLI subcommand and an integration test, with no changes to existing command behavior or auth flows beyond reusing ensureAPIKey.

Overview
Adds a new e2b sandbox info <sandboxID> subcommand (alias in) that calls Sandbox.getFullInfo, supports --format pretty|json, and strips envdAccessToken from output.

Registers the command under sandbox and adds a backend integration test asserting the JSON output includes the correct sandboxId and state.

Written by Cursor Bugbot for commit 7dbe8b7. This will update automatically on new commits. Configure here.

@changeset-bot
Copy link

changeset-bot bot commented Mar 19, 2026

🦋 Changeset detected

Latest commit: 7dbe8b7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@e2b/cli Minor

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

@github-actions
Copy link
Contributor

github-actions bot commented Mar 19, 2026

Package Artifacts

Built from 3da303b. Download artifacts from this workflow run.

JS SDK (e2b@2.14.2-cli-supports-info.0):

npm install ./e2b-2.14.2-cli-supports-info.0.tgz

CLI (@e2b/cli@2.8.2-cli-supports-info.0):

npm install ./e2b-cli-2.8.2-cli-supports-info.0.tgz

Python SDK (e2b==2.15.3+cli-supports-info):

pip install ./e2b-2.15.3+cli.supports.info-py3-none-any.whl

@matthewlouisbrockman matthewlouisbrockman changed the title Cli supports info feat (cli): adds info command to get sandbox info Mar 19, 2026
@matthewlouisbrockman matthewlouisbrockman marked this pull request as ready for review March 19, 2026 19:40
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 118bace03b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

@ValentaTomas ValentaTomas removed their request for review March 21, 2026 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants