Under Project Properties, Tools, Build, Command Line:
arduino-cli compile -p COM22 -u -t --fqbn arduino:avr:mega --warnings more myProject\myProject.ino
My SlickEdit project is located in the folder holding the Arduino project and "libraries" folders. The file arduino-cli.yaml is also in that folder.
board_manager:
additional_urls: []
daemon:
port: "50051"
directories:
data: C:\Users\me\AppData\Local\Arduino15
downloads: C:\Users\me\AppData\Local\Arduino15\staging
user: .
logging:
file: ""
format: text
level: info
telemetry:
addr: :9090
enabled: true
PS. Sorry I didn't see this question sooner....