Skip to content

Simplify install process #63

Open
Open

Description

@Chuxel

Currently this CLI has a native module dependency which drives the need for node-gyp dependencies like Python and C++. This makes installing the CLI far more difficult than intended.

To solve this issue, I'd propose we have a "distro" that is already compiled, and could even bundle Node.js. Installation can then just be an unzip/untar to keep things easy to begin with. We could then keep the npm option around for those that prefer to deal with the dependenceis.

The alternative would be to look into ways to remove the native dependency so that only Node.js is required.

//cc: Christof Marti (@chrmarti) Brigit Murtaugh (@bamurtaugh)

Activity

  1. eddiegroves commented on Jun 27, 2022

    @eddiegroves

    This would be great for the use case of using devcontainer build in CI/CD pipelines. You could provide a docker image too.

  2. mscottford commented on Jul 15, 2022

    @mscottford

    I thought I would share my use case. I typically don't install node directly on my host operating system, instead, I create development-focused containers that have node installed. Same with Python. When I need to work with/on a python project, I create a container to house that tool.

    I still wanted to install this cli, though, so I used homebrew to get things up and running:

    brew install node
    brew install python
    npm install -g @devcontainers/cli
    
  3. aaronpowell commented on Sep 16, 2022

    @aaronpowell

    Another justification for why this would be good is that one of the values of using a devcontainer is that you minimize the locally installed software, instead, relying on the devcontainer to have the stuff you need for actual development.

    Having a hard dependency in which you need to install things like Python means that you now have to have more "stuff" installed on the host machine.

  4. avelino commented on Sep 20, 2022

    @avelino

    why not leave ready-made formulas for each OS?

    • homebrew
    • .deb
    • .rpm
    • ...
  5. MisterTimn commented on Sep 30, 2022

    @MisterTimn

    An image with devcontainers/cli installed along with its dependencies would also go a long way.

  6. eitsupi commented on Sep 30, 2022

    @eitsupi

    Note that it can be installed simply by running npm install -g @devcontainers/cli on mcr.microsoft.com/vscode/devcontainers/typescript-node.
    This is actually used in https://github.com/devcontainers/features/blob/82960fd16b04fb4003a8765b2381bd23553737b5/.devcontainer.json, for example.

  7. framctr commented on Jun 30, 2023

    @framctr

    I agree with Avelino (@avelino) for having at least deb and rpm packages.

  8. chrmarti commented on Feb 6, 2026

    @chrmarti
    Contributor

    There is now an install script for macOS and Linux that will download and install Node.js and the Dev Containers CLI:

    curl -fsSL https://raw.githubusercontent.com/devcontainers/cli/main/scripts/install.sh | sh
    
  9. TomasEkeli commented on Feb 8, 2026

    @TomasEkeli

    This might help someone: I wrote up a post about how to use the container suggested by eitsupi as a way to run the devcontainer-cli with just docker installed:.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions