Here is a screenshot of the AMPL Command Line demo version running in a Terminal window on macOS. Model and data files are loaded and then CPLEX is successfully run:
Note that if you have the folder ampl.macosx64 on your desktop, the first command should be "cd desktop/ampl.macos64 rather than the command shown. The AMPL command "option ampl_include models;" gives access to the folder of examples distributed with the demo.
Please try posting a screenshot of your session where cplex is not found. (Press Shift-Command-4, then space, then click on the Terminal window; the screenshot file will appear on your desktop.) Or, copy the entire contents of the Terminal window and paste it into an email.
Bob Fourer
am...@googlegroups.com