2020-06-20 12:38:04 +02:00
# REST API CLI client
2019-08-02 00:00:48 +02:00
2021-11-21 09:32:51 +01:00
:warning: This sample client is deprecated and it will work only with API V1 (SFTPGo <= 1.2.2). You can easily build your own client from the [OpenAPI ](../../openapi/openapi.yaml ) schema or use [Swagger UI ](https://github.com/swagger-api/swagger-ui ).
2021-01-17 22:29:08 +01:00
2020-10-08 16:02:04 +02:00
`sftpgo_api_cli` is a very simple command line client for `SFTPGo` REST API written in python.
2019-08-08 14:20:42 +02:00
It has the following requirements:
- python3 or python2
- python [Requests ](https://2.python-requests.org/en/master/ "Requests" ) module
- Optionally, if the python module [Pygments ](http://pygments.org/ "Pygments" ) 1.5 or above is installed, the JSON responses will be highlighted with colors.
2019-08-02 00:00:48 +02:00
You can see the usage with the following command:
2020-06-20 12:38:04 +02:00
```console
2020-10-08 16:02:04 +02:00
python sftpgo_api_cli --help
2019-08-02 00:00:48 +02:00
```
2019-08-08 12:03:24 +02:00
and
2019-08-02 00:06:44 +02:00
2020-06-20 12:38:04 +02:00
```console
2020-10-08 16:02:04 +02:00
python sftpgo_api_cli [sub-command] --help
2019-08-08 12:03:24 +02:00
```
2019-08-08 14:20:42 +02:00
Basically there is a sub command for each REST API and the following global arguments:
2019-08-08 12:03:24 +02:00
2020-06-20 12:38:04 +02:00
- `-d` , `--debug` , default disabled, print useful debug info.
- `-b` , `--base-url` , default `http://127.0.0.1:8080` . Base URL for SFTPGo REST API
- `-a` , `--auth-type` , HTTP auth type. Supported HTTP auth type are `basic` and `digest` . Default none
- `-u` , `--auth-user` , user for HTTP authentication
- `-p` , `--auth-password` , password for HTTP authentication
- `-i` , `--insecure` , enable to ignore verifying the SSL certificate. Default disabled
- `-t` , `--no-color` , disable color highligth for JSON responses. You need python pygments module 1.5 or above for this to work. Default disabled if pygments is found and you aren't on Windows, otherwise enabled.
- `-c` , `--color` , enable color highligth for JSON responses. You need python pygments module 1.5 or above for this to work. Default enabled if `pygments` is found and you aren't on Windows, otherwise disabled. Please read the note at the end of this doc for colors in Windows command prompt.
2019-08-02 00:00:48 +02:00
2019-08-08 12:03:24 +02:00
For each subcommand `--help` shows the available arguments, try for example:
2019-08-02 00:00:48 +02:00
2020-12-11 12:52:50 +05:30
```python sftpgo_api_cli add-user --help` ``
2019-08-02 00:00:48 +02:00
2019-12-31 14:22:42 +01:00
Additionally it can convert users to the SFTPGo format from some supported users stores
2019-08-02 00:06:44 +02:00
Let's see a sample usage for each REST API.
2019-08-02 00:00:48 +02:00
2020-06-20 12:38:04 +02:00
## Add user
2019-08-02 00:00:48 +02:00
Command:
2020-06-20 12:38:04 +02:00
```console
2020-11-25 22:26:34 +01:00
python sftpgo_api_cli add-user test_username --password "test_pwd" --home-dir="/tmp/test_home_dir" --uid 33 --gid 1000 --max-sessions 2 --quota-size 0 --quota-files 3 --permissions "list" "download" "upload" "delete" "rename" "create_dirs" "overwrite" --subdirs-permissions "/dir1::list,download" "/dir2::*" --upload-bandwidth 100 --download-bandwidth 60 --status 0 --expiration-date 2019-01-01 --allowed-ip "192.168.1.1/32" --fs S3 --s3-bucket test --s3-region eu-west-1 --s3-access-key accesskey --s3-access-secret secret --s3-endpoint "http://127.0.0.1:9000" --s3-storage-class Standard --s3-key-prefix "vfolder/" --s3-upload-part-size 10 --s3-upload-concurrency 4 --denied-login-methods "password" "keyboard-interactive" --allowed-patterns "/dir1::*.jpg,*.png" "/dir2::*.rar,*.png" --denied-patterns "/dir3::*.zip,*.rar" --denied-protocols DAV FTP --additional-info "sample info"
2019-08-02 00:00:48 +02:00
```
Output:
```json
{
2020-11-25 22:26:34 +01:00
"additional_info": "sample info",
2019-12-25 18:20:19 +01:00
"download_bandwidth": 60,
"expiration_date": 1546297200000,
2020-01-19 07:41:05 +01:00
"filesystem": {
2020-12-05 13:48:13 +01:00
"azblobconfig": {
"account_key": {}
},
"cryptconfig": {
"passphrase": {}
},
"gcsconfig": {
"credentials": {}
},
2020-01-19 07:41:05 +01:00
"provider": 1,
"s3config": {
"access_key": "accesskey",
2020-11-22 21:53:04 +01:00
"access_secret": {
2020-12-05 13:48:13 +01:00
"payload": "ALVIG4egZxRjKH8/8NsJViA7EH5MqsweqmwLhGj4M4AGYgMM2ygF7kbCw+R5aQ==",
2020-11-30 21:46:34 +01:00
"status": "Secretbox"
2020-11-22 21:53:04 +01:00
},
2020-01-19 07:41:05 +01:00
"bucket": "test",
"endpoint": "http://127.0.0.1:9000",
2020-01-19 23:23:09 +01:00
"key_prefix": "vfolder/",
2020-01-19 07:41:05 +01:00
"region": "eu-west-1",
2020-03-13 17:28:55 +01:00
"storage_class": "Standard",
2020-03-13 19:13:58 +01:00
"upload_concurrency": 4,
2020-03-13 17:28:55 +01:00
"upload_part_size": 10
2020-12-12 10:31:09 +01:00
},
"sftpconfig": {
"password": {},
"private_key": {}
2020-01-19 07:41:05 +01:00
}
},
2019-12-30 18:37:50 +01:00
"filters": {
"allowed_ip": [
"192.168.1.1/32"
],
2020-02-19 22:39:30 +01:00
"denied_login_methods": [
"password",
"keyboard-interactive"
2020-03-01 22:10:29 +01:00
],
2020-08-17 12:49:20 +02:00
"denied_protocols": [
"DAV",
"FTP"
],
2020-11-15 22:04:48 +01:00
"file_patterns": [
2020-03-01 22:10:29 +01:00
{
2020-11-15 22:04:48 +01:00
"allowed_patterns": [
"*.jpg",
"*.png"
2020-03-01 22:10:29 +01:00
],
"path": "/dir1"
},
{
2020-11-15 22:04:48 +01:00
"allowed_patterns": [
"*.rar",
"*.png"
2020-03-01 22:10:29 +01:00
],
"path": "/dir2"
},
{
2020-11-15 22:04:48 +01:00
"denied_patterns": [
"*.zip",
"*.rar"
2020-03-01 22:10:29 +01:00
],
"path": "/dir3"
}
2020-02-19 22:39:30 +01:00
]
2019-12-30 18:37:50 +01:00
},
2019-08-02 00:00:48 +02:00
"gid": 1000,
2019-12-25 18:20:19 +01:00
"home_dir": "/tmp/test_home_dir",
"id": 9576,
"last_login": 0,
"last_quota_update": 0,
2019-08-02 00:00:48 +02:00
"max_sessions": 2,
2019-12-25 18:20:19 +01:00
"permissions": {
"/": [
"list",
"download",
"upload",
"delete",
"rename",
"create_dirs",
"overwrite"
],
"/dir1": [
"list",
"download"
],
"/dir2": [
"*"
]
},
2019-08-02 00:00:48 +02:00
"quota_files": 3,
2019-12-25 18:20:19 +01:00
"quota_size": 0,
2019-11-13 11:36:21 +01:00
"status": 0,
2019-12-25 18:20:19 +01:00
"uid": 33,
2019-08-02 00:00:48 +02:00
"upload_bandwidth": 100,
2019-12-25 18:20:19 +01:00
"used_quota_files": 0,
"used_quota_size": 0,
"username": "test_username"
2019-08-02 00:00:48 +02:00
}
```
2020-06-20 12:38:04 +02:00
## Update user
2019-08-02 00:00:48 +02:00
Command:
2020-06-20 12:38:04 +02:00
```console
2020-11-15 22:04:48 +01:00
python sftpgo_api_cli update-user 9576 test_username --password "test_pwd" --home-dir="/tmp/test_home_dir" --uid 0 --gid 33 --max-sessions 3 --quota-size 0 --quota-files 4 --permissions "*" --subdirs-permissions "/dir1::list,download,create_symlinks" --upload-bandwidth 90 --download-bandwidth 80 --status 1 --expiration-date "" --allowed-ip "" --denied-ip "192.168.1.0/24" --denied-login-methods "" --fs local --virtual-folders "/vdir1::/tmp/mapped1::-1::-1" "/vdir2::/tmp/mapped2::100::104857600" --allowed-patterns "" --denied-patterns "" --max-upload-file-size 104857600 --denied-protocols ""
2019-08-02 00:00:48 +02:00
```
Output:
```json
{
"error": "",
"message": "User updated",
"status": 200
}
```
2020-09-01 16:10:26 +02:00
You can set the argument `--disconnect` to `1` to disconnect the user, if connected, after a successful update and so force it to login again and to use the new configuration. If this parameter is not specified the user will continue to use the old configuration as long as he is logged in.
2020-06-20 12:38:04 +02:00
## Get user by id
2019-08-02 00:00:48 +02:00
Command:
2020-06-20 12:38:04 +02:00
```console
2020-10-08 16:02:04 +02:00
python sftpgo_api_cli get-user-by-id 9576
2019-08-02 00:00:48 +02:00
```
Output:
```json
{
2019-12-25 18:20:19 +01:00
"download_bandwidth": 80,
"expiration_date": 0,
2020-01-19 07:41:05 +01:00
"filesystem": {
2020-11-30 21:46:34 +01:00
"azblobconfig": {
"account_key": {}
},
2020-12-05 13:48:13 +01:00
"cryptconfig": {
"passphrase": {}
},
2020-11-30 21:46:34 +01:00
"gcsconfig": {
"credentials": {}
},
2020-01-19 07:41:05 +01:00
"provider": 0,
2020-11-30 21:46:34 +01:00
"s3config": {
"access_secret": {}
2020-12-12 10:31:09 +01:00
},
"sftpconfig": {
"password": {},
"private_key": {}
2020-11-30 21:46:34 +01:00
}
2020-01-19 07:41:05 +01:00
},
2019-12-30 18:37:50 +01:00
"filters": {
"denied_ip": [
"192.168.1.0/24"
2020-08-16 20:17:02 +02:00
],
"max_upload_file_size": 104857600
2019-12-30 18:37:50 +01:00
},
2019-08-02 00:00:48 +02:00
"gid": 33,
2019-12-25 18:20:19 +01:00
"home_dir": "/tmp/test_home_dir",
"id": 9576,
2019-11-13 11:36:21 +01:00
"last_login": 0,
2019-12-25 18:20:19 +01:00
"last_quota_update": 0,
"max_sessions": 3,
"permissions": {
"/": [
"*"
],
"/dir1": [
"list",
"download",
"create_symlinks"
]
},
"quota_files": 4,
"quota_size": 0,
2019-11-13 11:36:21 +01:00
"status": 1,
2019-12-25 18:20:19 +01:00
"uid": 0,
2019-08-02 00:00:48 +02:00
"upload_bandwidth": 90,
2019-12-25 18:20:19 +01:00
"used_quota_files": 0,
"used_quota_size": 0,
2020-02-23 11:30:26 +01:00
"username": "test_username",
"virtual_folders": [
{
2020-06-07 23:30:18 +02:00
"id": 1,
"last_quota_update": 0,
2020-02-23 11:30:26 +01:00
"mapped_path": "/tmp/mapped1",
2020-06-07 23:30:18 +02:00
"quota_files": -1,
"quota_size": -1,
"used_quota_files": 0,
"used_quota_size": 0,
2020-02-23 11:30:26 +01:00
"virtual_path": "/vdir1"
},
{
2020-06-07 23:30:18 +02:00
"id": 2,
"last_quota_update": 0,
2020-02-23 11:30:26 +01:00
"mapped_path": "/tmp/mapped2",
2020-06-07 23:30:18 +02:00
"quota_files": 100,
"quota_size": 104857600,
"used_quota_files": 0,
"used_quota_size": 0,
2020-02-23 11:30:26 +01:00
"virtual_path": "/vdir2"
}
]
2019-08-02 00:00:48 +02:00
}
```
2020-06-20 12:38:04 +02:00
## Get users
2019-08-02 00:00:48 +02:00
Command:
2020-06-20 12:38:04 +02:00
```console
2020-10-08 16:02:04 +02:00
python sftpgo_api_cli get-users --limit 1 --offset 0 --username test_username --order DESC
2019-08-02 00:00:48 +02:00
```
Output:
```json
[
{
2019-12-25 18:20:19 +01:00
"download_bandwidth": 80,
"expiration_date": 0,
2020-01-19 07:41:05 +01:00
"filesystem": {
2020-11-30 21:46:34 +01:00
"azblobconfig": {
"account_key": {}
},
2020-12-12 10:31:09 +01:00
"cryptconfig": {
"passphrase": {}
},
2020-11-30 21:46:34 +01:00
"gcsconfig": {
"credentials": {}
},
2020-01-19 07:41:05 +01:00
"provider": 0,
2020-11-30 21:46:34 +01:00
"s3config": {
"access_secret": {}
2020-12-12 10:31:09 +01:00
},
"sftpconfig": {
"password": {},
"private_key": {}
2020-11-30 21:46:34 +01:00
}
2020-01-19 07:41:05 +01:00
},
2019-12-30 18:37:50 +01:00
"filters": {
"denied_ip": [
"192.168.1.0/24"
2020-11-15 22:04:48 +01:00
],
"max_upload_file_size": 104857600
2019-12-30 18:37:50 +01:00
},
2019-08-02 00:00:48 +02:00
"gid": 33,
2019-12-25 18:20:19 +01:00
"home_dir": "/tmp/test_home_dir",
"id": 9576,
2019-11-13 11:36:21 +01:00
"last_login": 0,
2019-12-25 18:20:19 +01:00
"last_quota_update": 0,
"max_sessions": 3,
"permissions": {
"/": [
"*"
],
"/dir1": [
"list",
"download",
"create_symlinks"
]
},
"quota_files": 4,
"quota_size": 0,
2019-11-13 11:36:21 +01:00
"status": 1,
2019-12-25 18:20:19 +01:00
"uid": 0,
2019-08-02 00:00:48 +02:00
"upload_bandwidth": 90,
2019-12-25 18:20:19 +01:00
"used_quota_files": 0,
"used_quota_size": 0,
2020-02-23 11:30:26 +01:00
"username": "test_username",
"virtual_folders": [
{
2020-05-01 15:27:53 +02:00
"exclude_from_quota": false,
2020-02-23 11:30:26 +01:00
"mapped_path": "/tmp/mapped1",
"virtual_path": "/vdir1"
},
{
2020-05-01 15:27:53 +02:00
"exclude_from_quota": true,
2020-02-23 11:30:26 +01:00
"mapped_path": "/tmp/mapped2",
"virtual_path": "/vdir2"
}
]
2019-08-02 00:00:48 +02:00
}
]
```
2020-06-20 12:38:04 +02:00
## Get active connections
2019-08-02 00:00:48 +02:00
Command:
2020-06-20 12:38:04 +02:00
```console
2020-10-08 16:02:04 +02:00
python sftpgo_api_cli get-connections
2019-08-02 00:00:48 +02:00
```
Output:
```json
[
{
"active_transfers": [
{
"operation_type": "upload",
2019-12-25 18:20:19 +01:00
"path": "/test_upload.tar.gz",
"size": 1540096,
"start_time": 1577197471372
2019-08-02 00:00:48 +02:00
}
2019-12-25 18:20:19 +01:00
],
"client_version": "SSH-2.0-OpenSSH_8.1",
"connection_id": "f82cfec6a391ad673edd4ae9a144f32ccb59456139f8e1185b070134fffbab7c",
"connection_time": 1577197433003,
"last_activity": 1577197485561,
"protocol": "SFTP",
"remote_address": "127.0.0.1:43714",
"username": "test_username"
2019-08-02 00:00:48 +02:00
}
]
```
2020-06-20 12:38:04 +02:00
## Get folders
2020-06-07 23:30:18 +02:00
Command:
2020-06-20 12:38:04 +02:00
```console
2020-10-08 16:02:04 +02:00
python sftpgo_api_cli get-folders --limit 1 --offset 0 --folder-path /tmp/mapped1 --order DESC
2020-06-07 23:30:18 +02:00
```
Output:
```json
[
{
"id": 1,
"last_quota_update": 1591563422870,
"mapped_path": "/tmp/mapped1",
"used_quota_files": 1,
"used_quota_size": 13313790,
"users": [
"test_username"
]
}
]
```
2020-06-20 12:38:04 +02:00
## Add folder
2020-06-07 23:30:18 +02:00
2020-06-20 12:38:04 +02:00
```console
2020-10-08 16:02:04 +02:00
python sftpgo_api_cli add-folder /tmp/mapped_folder
2020-06-07 23:30:18 +02:00
```
Output:
```json
{
"id": 4,
"last_quota_update": 0,
"mapped_path": "/tmp/mapped_folder",
"used_quota_files": 0,
"used_quota_size": 0
}
```
2020-06-20 12:38:04 +02:00
## Close connection
2019-08-02 00:00:48 +02:00
Command:
2020-06-20 12:38:04 +02:00
```console
2020-10-08 16:02:04 +02:00
python sftpgo_api_cli close-connection f82cfec6a391ad673edd4ae9a144f32ccb59456139f8e1185b070134fffbab7c
2019-08-02 00:00:48 +02:00
```
Output:
```json
{
"error": "",
"message": "Connection closed",
"status": 200
}
```
2020-06-20 12:38:04 +02:00
## Get quota scans
2019-08-02 00:00:48 +02:00
Command:
2020-06-20 12:38:04 +02:00
```console
2020-10-08 16:02:04 +02:00
python sftpgo_api_cli get-quota-scans
2019-08-02 00:00:48 +02:00
```
2020-06-20 12:38:04 +02:00
## Start quota scan
2019-08-02 00:00:48 +02:00
Command:
2020-06-20 12:38:04 +02:00
```console
2020-10-08 16:02:04 +02:00
python sftpgo_api_cli start-quota-scan test_username
2019-08-02 00:00:48 +02:00
```
2019-08-05 11:11:29 +02:00
Output:
```json
{
2019-08-07 23:06:26 +02:00
"status": 201,
"message": "Scan started",
2019-08-05 11:11:29 +02:00
"error": ""
}
```
2020-06-20 12:38:04 +02:00
## Get folder quota scans
2020-06-07 23:30:18 +02:00
Command:
2020-06-20 12:38:04 +02:00
```console
2020-10-08 16:02:04 +02:00
python sftpgo_api_cli get-folders-quota-scans
2020-06-07 23:30:18 +02:00
```
2020-06-20 12:38:04 +02:00
## Start folder quota scan
2020-06-07 23:30:18 +02:00
Command:
2020-06-20 12:38:04 +02:00
```console
2020-10-08 16:02:04 +02:00
python sftpgo_api_cli start-folder-quota-scan /tmp/mapped_folder
2020-06-07 23:30:18 +02:00
```
Output:
```json
{
"status": 201,
"message": "Scan started",
"error": ""
}
```
2020-06-20 12:38:04 +02:00
## Update quota usage
Command:
```console
2020-10-08 16:02:04 +02:00
python sftpgo_api_cli -d update-quota-usage a -S 123 -F 1 -M reset
2020-06-20 12:38:04 +02:00
```
Output:
```json
{
"error": "",
"message": "Quota updated",
"status": 200
}
```
## Update folder quota usage
2019-08-02 00:00:48 +02:00
Command:
2020-06-20 12:38:04 +02:00
```console
2020-10-08 16:02:04 +02:00
python sftpgo_api_cli -d update-quota-usage /tmp/mapped_folder -S 123 -F 1 -M add
2019-08-02 00:00:48 +02:00
```
2020-06-20 12:38:04 +02:00
Output:
```json
{
"error": "",
"message": "Quota updated",
"status": 200
}
```
## Delete user
Command:
```console
2020-10-08 16:02:04 +02:00
python sftpgo_api_cli delete-user 9576
2019-08-02 00:00:48 +02:00
```
Output:
```json
{
"error": "",
"message": "User deleted",
"status": 200
}
2019-08-08 10:13:32 +02:00
```
2020-06-20 12:38:04 +02:00
## Delete folder
2020-06-07 23:30:18 +02:00
2020-06-20 12:38:04 +02:00
```console
2020-10-08 16:02:04 +02:00
python sftpgo_api_cli delete-folder /tmp/mapped_folder
2020-06-07 23:30:18 +02:00
```
Output:
```json
{
"error": "",
"message": "Folder deleted",
"status": 200
}
```
2020-06-20 12:38:04 +02:00
## Get version
2019-08-08 10:13:32 +02:00
Command:
2020-06-20 12:38:04 +02:00
```console
2020-10-08 16:02:04 +02:00
python sftpgo_api_cli get-version
2019-08-08 10:13:32 +02:00
```
Output:
```json
{
2019-12-25 18:20:19 +01:00
"build_date": "2019-12-24T14:17:47Z",
"commit_hash": "f8fd5c0-dirty",
"version": "0.9.4-dev"
2019-08-08 10:13:32 +02:00
}
2019-08-29 13:52:22 +02:00
```
2020-06-20 12:38:04 +02:00
## Get provider status
2019-11-14 18:48:01 +01:00
Command:
2020-06-20 12:38:04 +02:00
```console
2020-10-08 16:02:04 +02:00
python sftpgo_api_cli get-provider-status
2019-11-14 18:48:01 +01:00
```
Output:
```json
{
"error": "",
"message": "Alive",
"status": 200
}
```
2020-06-20 12:38:04 +02:00
## Backup data
2019-12-27 23:12:44 +01:00
Command:
2020-06-20 12:38:04 +02:00
```console
2020-10-08 16:02:04 +02:00
python sftpgo_api_cli dumpdata backup.json --indent 1
2019-12-27 23:12:44 +01:00
```
Output:
```json
{
"error": "",
"message": "Data saved",
"status": 200
}
```
2020-06-20 12:38:04 +02:00
## Restore data
2019-12-27 23:12:44 +01:00
Command:
2020-06-20 12:38:04 +02:00
```console
2020-10-08 16:02:04 +02:00
python sftpgo_api_cli loaddata /app/data/backups/backup.json --scan-quota 2 --mode 0
2019-12-27 23:12:44 +01:00
```
Output:
```json
{
"error": "",
"message": "Data restored",
"status": 200
}
```
2020-06-20 12:38:04 +02:00
## Convert users from other stores
2019-12-29 17:21:25 +01:00
You can convert users to the SFTPGo format from the following users stores:
2020-01-09 12:00:37 +01:00
- Linux users stored in `shadow` /`passwd` files
2019-12-29 17:21:25 +01:00
- Pure-FTPd virtual users generated using `pure-pw` CLI
- ProFTPD users generated using `ftpasswd` CLI
For details give a look at the `convert-users` subcommand usage:
2020-06-20 12:38:04 +02:00
```console
2020-10-08 16:02:04 +02:00
python sftpgo_api_cli convert-users --help
2019-12-29 17:21:25 +01:00
```
Let's see some examples:
2020-06-20 12:38:04 +02:00
```console
2020-10-08 16:02:04 +02:00
python sftpgo_api_cli convert-users "" unix-passwd unix_users.json --min-uid 500 --force-uid 1000 --force-gid 1000
2019-12-29 17:21:25 +01:00
```
2020-06-20 12:38:04 +02:00
```console
2020-10-08 16:02:04 +02:00
python sftpgo_api_cli convert-users pureftpd.passwd pure-ftpd pure_users.json --usernames "user1" "user2"
2019-12-29 17:21:25 +01:00
```
2020-06-20 12:38:04 +02:00
```console
2020-10-08 16:02:04 +02:00
python sftpgo_api_cli convert-users proftpd.passwd proftpd pro_users.json
2019-12-29 17:21:25 +01:00
```
The json file generated using the `convert-users` subcommand can be used as input for the `loaddata` subcommand.
Please note that when importing Linux/Unix users the input file is not required: `/etc/passwd` and `/etc/shadow` are automatically parsed. `/etc/shadow` read permission is is typically granted to the `root` user, so you need to execute the `convert-users` subcommand as `root` .
2020-06-20 12:38:04 +02:00
## Colors highlight for Windows command prompt
2019-08-29 13:52:22 +02:00
If your Windows command prompt does not recognize ANSI/VT100 escape sequences you can download [ANSICON ](https://github.com/adoxa/ansicon "ANSICON" ) extract proper files depending on your Windows OS, and install them using `ansicon -i` .
2020-06-20 12:38:04 +02:00
Thats all. From now on, your Windows command prompt will be aware of ANSI colors.