Went through this question a few months ago including how to build a cli image. Instructions in the post.
Radxa supports cli for some devices but not the 5B/5B+. So you need to make your own build. My build was a little over 4gb vs about 7gb for a kde build.