How to Fix AWS CLI Help Errors: Step-by-Step Guide

When using AWS CLI and running the help command to look up parameters, you might encounter this error:

$ aws cloudfront help
Could not find executable named "groff or mandoc"

Cause of the Error

This happens when the system can’t find the manual tools "groff" or "mandoc", which are required to display help pages in Linux.

Solution

Install mandoc using the following command:

sudo apt install -y mandoc

Alternatively, you can install groff with this:

sudo apt install -y groff

Conclusion

By installing one of these packages, the AWS CLI help command will function properly. This simple fix allows you to access CLI help features without further issues.

コメント

Copied title and URL