question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FR: Command Line Interface (CLI)

See original GitHub issue

I like to use the slicer on the command line (without the browser), something like

% KiriMotoSlicer cube.stl -o cube.gcode

I have a model -> slice -> gcode pipeline supporting multiple slicers (slic3r, prusa-slicer, cura, etc) and I like to use KiriMoto as well as alternative.

Is anyone working on it currently or has it been done (and I didn’t find it)?

What would be the best way:

  • create pure NodeJS version from browser JS code (I tried, but I ran quickly into browser-JS vs Node-JS module incompatibilities)
  • extend app-server to slice and execute with STL file as single argument (+ config), slice and exit again
  • create a small wrapper sending STL to (locally running) app-server (which slices too) and get .gcode back and save it as a file - thereby create server API and scalable slicing framework

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
stewartoallencommented, Jul 26, 2021

There is a way to run the slicer from the command line using node and without requiring the app server. It requires wrapping some of the dependent libs to fake a browser environment. I will check in an example soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is a command-line interface (CLI)? - TechTarget
A command-line interface (CLI) is a text-based user interface (UI) used to run programs, manage computer files and interact with the computer.
Read more >
What is CLI?[A Guide on Command Line Interface] - MonoVM
CLI is a powerful tool that runs with the help of commands. You put commands from your keyboard to tell the system what...
Read more >
How to use the Command Line Interface (CLI) | The Startup
The command line interface is a program on your computer that allows you to create and delete files, run programs, and navigate through...
Read more >
Command Line Interface - CLI - Dell Technologies Info Hub
The CLI is a basic command-line interpreter with command-line completion, inline syntax help, and prior command recall. The CLI can be accessed from...
Read more >
Command-line interface - IBM
You can use the command-line interface (CLI) to enter commands that enable you to manage the system. Syntax diagrams. A syntax diagram uses...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found