Continous integration

Dev is a Makefile replacement for modern development environments. Dev let’s you manage cloned repositories, setup or teardown environments, execute commands, open pull requests and more. Dev is currently only supported on macOS.


Install dev by running the installer:

curl -s | sh

Getting started

Dev commands are defined in a Devfile, it maps a command to pre-defined tasks. Here is an example file:

name: dev

    - python: 3.10.0
    - pip: requirements/development.txt
    test: py.test --color=yes
        - run: yapf -rip dev
        - run: flake8 .
        - pypi: upload

Running a command:

$ dev test
=> Running command: py.test --color=yes
============================= test session starts ==============================
platform darwin -- Python 3.10.0, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: /Users/alex/src/
collected 5 items

tests/ .....                                                  [100%]

============================== 5 passed in 0.27s ===============================

Managing git clones

Clone and navigate repositores with clone and cd commands. Clone repositores in a unified way and navigate between them using fuzzy search.

~/src/ $ dev clone hookit
Cloning into '/Users/alex/src/'...
remote: Enumerating objects: 153, done.
remote: Total 153 (delta 0), reused 0 (delta 0), pack-reused 153
Receiving objects: 100% (153/153), 23.12 KiB | 3.30 MiB/s, done.
Resolving deltas: 100% (69/69), done.
~/src/ $ dev cd dev
~/src/ $

Helpful fuzzy search for faster repository navigation:

$ dev cd heroku
Found multiple matches, select which one you meant:
┃ Index ┃ Repository                ┃ Organization ┃ Host       ┃ Path                                                           ┃
│   1   │ heroku-buildpack-yarn     │ MasonData    │ │ /Users/alex/src/     │
│   2   │ heroku-buildpack-swig-lib │ MasonData    │ │ /Users/alex/src/ │
Which one? (1):

Browser links

Dev provide a way to open links related to your project. A new pull request or issue can easily be opened if your project is hosted on Github. Custom links are added to your Devfile.


Open links using the dev open command:

$ dev open actions
=> Running command: open

$ dev open pr
=> Running command: open

$ dev open issue
=> Running command: open

Bundled tasks

You can list all tasks available to Dev using the --tasks flag. This will list all bundled tasks and locally provided custom tasks.

$ dev --tasks
┃ Task                ┃ Description                          ┃
│ docker_compose      │ Manage docker-compose                │
│ docker_compose_exec │ Run shell commands in docker-compose │
│ homebrew            │ Install formulas on macOS            │
│ homebrew_cask       │ Install cask formulas on macOS       │
│ python              │ Install a specific Python version    │
│ run                 │ Run shell commands                   │
│ pip                 │ Run pip install                      │
│ pypi                │ Manage packages on PyPi              │

Custom tasks

Dev provides a handful of common and useful tasks by default, but you might want to define your own to simplify your Devfile. A new task can easily be defined in your project by placing it in a devs module.

  1. Create devs.custom_task and define a class named CustomTask with a up and optionally a down method:

    from dev.task import Task
    class CustomTask(Task):
        __description__ = 'Demo custom task'
        def up(self, args, extra_args):
            print('Hello world!')
        def down(self, args, extra_args):
            print('Bye world!')
  2. Reference your new task in your Devfile:

    name: project
        - custom_task
            - custom_task
  3. Try using it:

    $ dev up
    Hello world!
    $ dev down
    Bye world!
    $ dev hello
    Hello world!


Simply remove your /opt/dev directory and any reference in your shell config. Restart your shell to clear loaded environment functions.


This project is licensed under the terms of the MIT license.

Inspiration for building this tool comes from an internal tool at Shopify. You can read more about it here:


View Github