Codesandbox-client: Opening a terminal

Created on 18 Mar 2019  路  8Comments  路  Source: codesandbox/codesandbox-client

Hi, I'm new to codesandbox and I"m wondering how to open a terminal in order to run a npm command. I looked about my sandbox but I couldn't find any option to open a terminal.

Thanks,

Most helpful comment

In case this helps anyone: to enable containers for an existing project you need to create a sandbox.config.json file with the following content before creating the sandbox:

{
  "template": "node"
}

I'm not sure if there is a way to change the sandbox once it's created.

All 8 comments

Hey @neunygph , you can only open a terminal in a server sandbox, you can read this article for more info.

Ah I see, thank you.

In other news, CodeSandbox Containers is out of beta as of today! 馃檪

Closing this, if you're interested in more details about this feature, you can also find us on Spectrum .

In case this helps anyone: to enable containers for an existing project you need to create a sandbox.config.json file with the following content before creating the sandbox:

{
  "template": "node"
}

I'm not sure if there is a way to change the sandbox once it's created.

Terminal is not showing up in codesandboxes for me, and this is long after the containers update. How can I get a terminal in a sandbox now?

Hey @djnorrisdev ,

In order to open a terminal you need a server sandbox that you own - meaning that you created it by forking an existing sandbox / template (as a note, you don't own GitHub imported sandboxes, even if you own the repository).

For example, go to the node template - https://codesandbox.io/s/node , fork it, and to open a terminal, press on the right + icon in the "Terminal" pane:

image

@zommerfelds

I'm not sure if there is a way to change the sandbox once it's created.

There isn't one for now, but it's definitely high up on our roadmap!

@Ibogdan,

Thanks, I was trying to get access to be able to npm or yarn install a privately hosted npm package. I鈥檓 guessing that鈥檚 not possible yet?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ryanpcmcquen picture ryanpcmcquen  路  23Comments

rdmurphy picture rdmurphy  路  20Comments

YarivGilad picture YarivGilad  路  22Comments

bcbrian picture bcbrian  路  33Comments

jthegedus picture jthegedus  路  21Comments