Here's all the steps you need to quickly get started with the Acrolinx CLI:
Before you get started, make sure you have the following:
An Acrolinx license with the CLI enabled.
Your existing Acrolinx license might not have the Acrolinx CLI enabled by default.
Find out how to review your licensed products and request a new license.
Version 2020.06 or later of the Acrolinx Platform
Because we've changed the Platform API, the CLI only works with newer versions of the platform.
A basic knowledge of Acrolinx concepts
Acrolinx has several guidance settings that can dramatically affect the quality of the results. A perfectly integrated CLI isn’t much use if Acrolinx mostly reports non-issues due to incorrect guidance settings.
These guidance settings are grouped in specific "profiles", which are usually managed by language or content experts. Before you move to production, check with your Acrolinx guidance administrator about the correct profile to use.
It's also a good idea to review the documentation about the guidance or Targets settings.
To try out the Acrolinx CLI, contact Acrolinx Support and ask them to add it your download area. The Acrolinx CLI comes as a single executable available in three variants for Windows, Linux, and macOS
By default, the executables have long names such as "
acrolinx-cli-188.8.131.528.windows-x64.exe". To make the CLI easier to try, we recommend that you shorten the name to something like "
acrolinx-cli.exe". For the sake of simplicity, all the examples in this guide use this shorted version of the command.
On Mac, make the CLI an executable
On Mac and Linux, you'll need to make the CLI file an executable before you can use it. In your terminal, run the following command:
Mac and Linux
chmod 544 /<PATH>/acrolinx-cli
The following operating systems are supported:
Linux (Ubuntu 16.04)
macOS Catalina and later
For more detailed compatibility information, see our Compatibility Guide.
There are several ways to authenticate with the Acrolinx Platform — you can learn about these in the article Authenticate Your Acrolinx Users.
To get started quickly, try the following command:
acrolinx-cli signin -a <ACROLINX_URL> -o
acrolinx-cli signin -a https://acrolinx.demo-inc.cloud -o
The is method uses OAuth authentication to open a window in your browser where you can authorize the Acrolinx CLI and get access credentials. Once you authorize the CLI, you'll get an access token that you can use in the following command.
For our first check, let's check an individual file.
acrolinx-cli check --acrolinx-url=<ACROLINX_PLATFORM_URL> --access-token=<ACCESS_TOKEN> --files="<FILE_PATH>" --open
Your command should look something like this:
acrolinx-cli check --acrolinx-url=https://demo-inc.acrolinx.cloud --access-token=eyJ0eXAiOiJ...UTBEr8eNmzN4 --files="README.md" --open
After the check has completed, the CLI automatically opens the Content Analysis dashboard in a browser window. This is because we included the "
--open" option. In an automated process, you'll want to omit this option.
Once you've got the Acrolinx CLI working, be sure to set up your environment properly. For example, you'll want to set the Acrolinx URL and your access token as environment variables so that you don't have to keep entering them.