Update docs with the easier way to run the CLI

This commit is contained in:
Tyrrrz
2024-03-18 03:20:46 +02:00
parent 47d560229d
commit 72f02cd9a0
3 changed files with 38 additions and 8 deletions

View File

@@ -8,19 +8,25 @@ Please follow the [instructions provided here](Dotnet.md).
1. Download [DiscordChatExporter.CLI.zip](https://github.com/Tyrrrz/DiscordChatExporter/releases/latest) and extract it to a folder.
2. Open Terminal.
3. `cd` into the extracted folder. You can do this in Terminal by typing `cd`, then press the SPACE key, drag and drop the extracted folder into the Terminal window, and press the ENTER key.
3. Change the working directory into the extracted folder. You can do this in Terminal by typing `cd`, then press the SPACE key, drag and drop the extracted folder into the Terminal window, and press the ENTER key.
4. Replace `TOKEN` and `CHANNEL`, then execute this command to export:
```console
./DiscordChatExporter.Cli.sh export -t TOKEN -c CHANNEL
```
If the above command throws a "Permission denied" error, use `chmod` to fix the permissions:
```console
chmod +x DiscordChatExporter.Cli.sh
```
Alternatively, if the script doesn't work, you can run the following command to run the application directly:
```console
dotnet DiscordChatExporter.Cli.dll export -t TOKEN -c CHANNEL
```
If the above command throws a "Permission denied" error, execute this command to fix the permissions:
```console
chmod 644 *.dll DiscordChatExporter.*
```
> [How to get Token and Channel IDs](Token-and-IDs.md).
There's much more you can do with DCE.CLI! Read the [CLI explained](Using-the-CLI.md) page to get started.