# Get Started

Kaput allows you to manage your entire Put.io account from the terminal.

## Welcome

Welcome to official documentation for Kaput-CLI! Here you can find information on how to install and use the software.

## Get Started

Ready to install? Head over to our installation instructions to find information for your platform.

{% content-ref url="/pages/tFAvNjE8NaSpZA5gJmuD" %}
[Installation](https://docs.kaput.sh/info/installation)
{% endcontent-ref %}

## Usage

Once installed, you can run the commands by calling `kaput`.

```bash
kaput <command>
```

## Commands

For more information, you can check out our in-depth documentation for each command.

{% content-ref url="/pages/2Dp5ccEQR3uWtIvwnHSR" %}
[Commands](https://docs.kaput.sh/commands/login)
{% endcontent-ref %}


# Installation

### Windows

Specific instructions coming soon.

### macOS

Specific instructions coming soon.

### Linux

Specific instructions coming soon.

### Manual Installation <a href="#manual-installation" id="manual-installation"></a>

Binaries of the latest version of every major platform are available on the [releases](https://github.com/davidchalifoux/kaput-cli/releases/latest) page.

### Installing with Cargo <a href="#installing-with-cargo" id="installing-with-cargo"></a>

You can directly compile and install Kaput as long as you have [Rust](https://www.rust-lang.org/) and [Cargo](https://doc.rust-lang.org/stable/cargo/) installed on your machine.

1. Install Rust and Cargo (skip if already installed)

```bash
curl https://sh.rustup.rs -sSf | sh
```

2. Install Kaput through Cargo

```bash
cargo install kaput-cli
```


# Login

Logs into your Put.io by saving an auth token locally on your device.

### Usage

```shell
kaput login
```


# Logout

Logs out of your Put.io account by removing the auth token saved on your device.

### Usage

```bash
kaput logout
```


# Files

Commands used to manage the files on your account.


# List

Lists your files and folders.

### Usage

```sh
kaput files list <FILE_ID>
```

### Arguments

* `FILE_ID` - Lists the contents of a folder (optional)


# Search

Searches you and your friend's files.

### Usage

```sh
kaput files search <QUERY>
```

### Arguments

* `QUERY` - Keyword(s) to search for (required)


# URL

Generates a URL for downloading a file or folder.

### Usage

```shell-session
kaput files url <FILE_ID>
```

### Arguments

* `FILE_ID` - ID of a file or folder (required)


# Download

Downloads a file or folder from your account to your device.

### Usage

```shell-session
kaput files download <FILE_ID>
```

### Arguments

* `FILE_ID` - ID of a file or folder (required)

### Notes

* You must have `curl` installed in order to use this command.


# Delete

Deletes the specified file(s) on your account.

### Usage

```shell-session
kaput files delete <FILE_ID>
```

### Arguments

* `FILE_ID` - ID(s) of a file (required)


# Upload

Uploads file(s) to your account.

### Usage

```shell-session
kaput files upload <FILE_PATH>
```

### Arguments

* `FILE_PATH` - Valid paths of files to upload (required).

### Notes

* If the uploaded file is a `.torrent` file, a transfer will be started instead.
* You must have `curl` installed in order to use this command.


# Move

Moves a file to a different parent folder.

### Usage

```shell-session
kaput files move <FILE_ID> <PARENT_ID>
```

### Arguments

* `FILE_ID` - ID(s) of the file(s) to move (required)
* `PARENT_ID` - ID of the new parent folder (required)


# Rename

Renames a file.

### Usage

```shell-session
kaput files rename <FILE_ID> <NAME>
```

### Arguments

* `FILE_ID` - ID of the file to rename (required)
* `NAME` - New name for the file (required)


# Extractions

Lists active extractions.

### Usage

```shell-session
kaput files extractions
```


# Extract

Extracts ZIP and RAR archives.

### Usage

```shell-session
kaput files extract <FILE_ID>
```

### Arguments

* `FILE_ID` - ID(s) of the file(s) to move (required)
* `NAME` - New name for the file (required)


# Transfers

Commands used to manage the files on your account.


# List

Lists the current transfers on your account.

### Usage

```shell-session
kaput transfers list
```


# Add

Adds new transfers to your account with a URL.

### Usage

```shell-session
kaput transfers add <URL>
```

### Arguments

* `URL` - URL to transfer (required)


# Cancel

Cancels or removes transfers on your account.

### Usage

```shell-session
kaput transfers cancel <TRANSFER_ID>
```

### Arguments

* `TRANSFER_ID` - ID of a transfer (required)

### Notes

* If transfer is in `SEEDING` state, stops seeding. Otherwise, it removes the transfer entry. Does not remove their files.


# Retry

Retries failed transfers.

### Usage

```shell-session
kaput transfers retry <TRANSFER_ID>
```

### Arguments

* `TRANSFER_ID` - ID of a transfer (required)


# Remove

Removes transfer(s).

### Usage

```shell-session
kaput transfers remove <TRANSFER_ID>
```

### Arguments

* `TRANSFER_ID` - ID(s) of a transfer (required)


# Clean

Clears all finshed transfers on your account.

### Usage

```shell-session
kaput transfers clean
```

### Notes

* Does not remove files.


# Whoami

Returns the username and email of the currently authenticated Put.io user.

### Usage

```sh
kaput whoami
```


# Debug

Returns the current config file and path. This command is useful for debugging purposes.

### Usage

```sh
kaput debug
```


