cwl-format command not found

In this troubleshooting guide we learn how to fix cwl-format command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

cwl-format: command not found

or when using sudo you get the following error message

sudo: cwl-format: command not found

Solutions to cwl-format: command not found

How To Fix cwl-format: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu cwl-format is provided by cwlformat package.

cwlformat is:

CWL Format is a specification and a reference implementation for a very opinionated CWL code formatter.

It outputs Common Workflow Language(CWL) in a standardized YAML format. It has no settings or options because you have better things to do with your time. And because CWL Format is always correct.

To fix this problem, we can install more using the command below.

sudo apt-get -y install cwlformat

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install cwlformat.

sudo apt -y install cwlformat

Or if you have aptitude installed you can use the following command.

sudo aptitude install cwlformat

Summary

In this tutorial we learn how to fix cwl-format command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.