**On Windows it's best using [Windows Terminal](https://docs.microsoft.com/en-us/windows/terminal/install) for the best experience and looks. Some features like emojis in the [`/chunk`](#chunk) command do not work in CMD or Powershell 5**
</div>
## Linux, macOS
To run the client you need to type the following command in your terminal emulator:
```bash
./MinecraftClient
```
If you want to keep it running in the background you can use `screen` (Linux only)
Example:
```bash
# Start the screen
screen -S mcc
# Run it
./MinecraftClient
# Detach from the screen by pressing CTRL + A + D
# Re-attach if you want to have accces again
screen -r mcc
```
_Learn more on how to use the screen command: [YouTube](https://www.youtube.com/watch?v=_ZJiEX4rmN4)_
## Docker
See [Run using Docker](./guide/installation.md#using-docker)
## Command-line usage
**Minecraft Console Client** has a plethora of useful command line parameters, here you can learn about them.
### For people not familiar with the command line
For people who are not familiar with the usage of programs in the command line (terminal emulators), here we will explain what every single thing means, if you're already experienced you can skip this.
In command line (terminal emulators) you can run programs by specifying their name and hitting enter, usually programs have additional way of being configured, started or provided some additional data in a different manner, this is achieved by using command line parameters.
Command line parameters are written after the name of the program, they're separated by spaces and they can have a few different formats, examples:
-`someparameter`
-`-some-parameter`
-`--some-other-parameter`
-`--some-setting="some value"`
-`-a=5`
Parameters with a single dash (`-`) are usually used for a single letter (short-hand) parameters, while the ones with a double dash (`--`) are being used for parameters with a longer/full name.
When you are reading examples, you will often see something like this: `<something here>`, this means that this is a place holder and it should be changed with some value, excluding the `<` and the `>`.
For example `<username>` you need to change to an username of your liking, example: `notch` (`<` and `>` should not be included).
`[` and `]` mean that a parameter is an optional one.
They also can hold some values, example from the MCC:
```bash
MinecraftClient.exe --debugmessages=false
```
When a parameter has a textual value that includes one more spaces, you will need to wrap it the value in double quotes (`"`), example: `--some-parameter="some text here with spaces in it"`
Here is an example for using a `--help` command line parameter for MCC that will print out a page on how to use MCC from the command line:
**Some commands may not be documented yet or are defined in description of Chat Bots, use `/help` to list them all, or you can contribute to this page.**
</div>
### `animation`
-**Description:**
Swing your main or off hand.
-**Usage:**
```
/animation <mainhand|offhand>
```
### `bed`
-**Description:**
Allows you to make the bot sleep easily, all about sleeping in one command.
**You need a terminal with emoji support, like Powershell 7, Windows Terminal or Alacritty, if you do not want emoji support and want to use cmd or powershell 5, disable emojis with: [`enableemoji`](configuration.md#enableemoji)**
</div>
-**Usage:**
```
/chunk status [chunkX chunkZ|locationX locationY locationZ]
```
How it looks:

### `dig`
-**Description:**
Dig a block on a specific coordinate.
-**Usage:**
```
/dig <x><y><z>
```
-**Example:**
```
/dig 127 63 12
```
Using relative coordinates:
```
/dig ~ ~-1 ~2
```
### `dropitem`
-**Description:**
Drop all items of a specific type from your inventory.
**You need to have [Inventory Handling](configuration.md#inventoryhandling) and [Entity Handling](configuration.md#entityhandling) enabled in order for this to work.**
**All local variables are treated as strings in the app, when comparing their values, you can use `<variable> == "<value>"`, or better use [`.Equals`](https://www.programiz.com/csharp-programming/library/string/equals) method**
**Some settings won't be reloaded since they are used before the client initialization. Also, settings provided by the command line paramteres will be overriden. This also does not reload the ReplayBot due to technical limitations.**
**You need to have [Inventory Handling](configuration.md#inventoryhandling) and [Terrain and Movements](configuration.md#terrainandmovements) enabled in order for this to work.**
**The [Terrain and Movements](configuration.md#terrainandmovements) is currently not supported in `1.4.6 - 1.6`.**
</div>
-**Usage:**
```
/move <on|off|get|up|down|east|west|north|south|center|xyz|gravity[on|off]> [-f]: walk or start walking. "-f": force unsafe movements like falling or touching fire
```
-**Examples:**
Enable gravity
```
/move gravity on
```
Move to coordinates:
```
/move 125 72 34
```
Move to a center of a block:
```
/move center
```
### `look`
-**Description:**
Used for looking at direction when terrain and movements is enabled
**The [Inventory Handling](configuration.md#inventoryhandling) is currently not supported in `1.4.6 - 1.9`.**
</div>
MCC defines inventories as containers internally, so player's inventory, chests, droppers, dispensers, hoppers, chest minecarts, barrels, furnaces, etc... are all considered a container, and each one of them has it's ID, the words container and inventory can be used interchangeably.
Inventory has slots and each one of them has an id.