💻Command Line Interface (CLI)

Interacting with the infinite-craft Command Line Interface (or CLI).

When you install infinite-craft, two CLI apps are installed. infinite-craft and infinitecraft.

You can use either, both do the exact same thing.

Display help

To view the help page of the CLI, use the -hor --help tag.

infinite-craft --help

Reset discoveries.json

You can reset your discoveries.json file to its initial 4 elements using the command below

infinite-craft reset -d "/path/to/discoveries.json"

Run Mock API

You can start a mock API on your device using the command below.

infinite-craft mock

The mock API listens on 127.0.0.1 (aka localhost) on port 8080.

Customize Mock API

You can also start it at a custom host and port.

infinite-craft mock --host 0.0.0.0 --port 80

NOTE: If infinite-craft or infinitecraft is not on PATH, you can use:

python3 -m infinite-craft

Same with infinitecraft.

Last updated