XRay CLI configurations manager.
There are a lot of apps such as Happ, v2raytun and others. They have a nice Graphical UI, but if you prefer the original XRay CLI app you have to manage configurations by yourself. In common, you have a subscription link or an outbound link like:
www.something.com/subscription/abscde(subscription)vless://94671f42-fdd3-4503-a3e6-bda4a2527560@104.21.22.213:80?encryption=none&security=none&sni=019.electrocellco-cf-019.workers.dev&alpn=http/1.1&fp=chrome&type=ws&host=019.electrocellco-cf-019.workers.dev&path=/eyJqdW5rIjoibUVFb0RQcHJZZSIsInByb3RvY29sIjoidmwiLCJtb2RlIjoicHJveHlpcCIsInBhbmVsSVBzIjpbIjM0LjI1My4yMzQuNjIiXX0=?ed=2560#%5BOpenRay%5D%20%F0%9F%87%A8%F0%9F%87%A6%20CA-11825(outbound connection link)
And you have to rewrite this config to JSON to use XRay.
To make this process simpler, I made XRay configuration manager called Rayconf
It supports both subscription links and your own connection links.
$ rayconf add
> vless://4255a5cd-de07-49c5-acb3-39537f1097fb@your-server/...
rayconf remote add
> my_subscription
> www.something.com/subscription/abscde
> plainrayconf select | xray run
> your_server
rayconf select --remote | xray run
> my_subscription
> server_from_subscription
Please note,
| xray runpipes rayconf-made JSON configuration to XRay's stdin (It has such feature)
That's actually It, feel free to as questions. PR's are welcome.