You can use the Acrolinx CLI to check a local file, a set of files, or even pages in a website. Whenever you run check, Acrolinx needs to know the correct Guidance Profile to apply.
There are two ways to apply a Guidance Profile to a check.
- Recommended: Configure the Acrolinx Core Platform to automatically assign a Guidance Profile based on criteria such as user role.
- Specify the Guidance Profile as command-line argument and override the automatic assignment logic.
You can get a list of Guidance Profiles with the
Check Local Files
The following command shows the basic syntax for checking local files:
The Acrolinx URL and access token are omitted from this command because we assume that you have already set them as environment variables. If this isn't the case, enter all commands with the
--acrolinx-url and --access-token arguments.
The following example shows you how to check local files:
Check a set of Markdown files and explicitly specify a Guidance Profile
The output for this command should resemble the following example:
Check a Website
The following command shows the basic syntax for checking websites:
The following example shows you how to check a website with a maximum link depth of 2: