mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-27 00:55:57 +03:00
[GH-ISSUE #1272] How can I import settings for remote map using proxyman-cli ? #1266
Labels
No labels
Discussion
Feature request
In Progress...
Plugins
Waiting response
Windows
Windows
bug
duplicate
enhancement
feature
good first issue
iOS
macOS 10.11
question
wontfix
✅ Done
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Proxyman#1266
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rakeshkarkare on GitHub (Jun 27, 2022).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1272
Originally assigned to: @NghiaTranUIT on GitHub.
How can I import settings for remote map using proxyman-cli ?
It gives me [ERROR] Invalid config file. Please contact the development team at support@proxyman.io.
@NghiaTranUIT commented on GitHub (Jun 28, 2022):
Hi @rakeshkarkare , can you share a sample of Map Remote (which is exporting by proxyman-cli) to support@proxyman.io ? We'd like to investigate 👍
Meantime, you can workaround by simply exporting the Map Remote Tool via Import/Export Setting, then importing them again to your new Machine. It should work.
@rakeshkarkare commented on GitHub (Jun 28, 2022):
Hi @NghiaTranUIT,
Please find below sample Map Remote exported from proxyman UI Tool Export Settings
[ { "method": { "exact": [ { "name": "POST" } ] }, "regex": "useWildcard", "fromURLComponent": { "path": "", "query": "", "host": "", "scheme": "", "port": "" }, "id": "9CE896ED", "graphQLQueryName": "", "toURLComponent": { "path": "", "query": "", "host": "localhost", "scheme": "http", "port": "5000" }, "mapFromURL": "https:\/\/googl.com\/gateway\/1.0\/static", "isIncludingPaths": false, "preserveHostHeader": false, "name": "Untitled", "isEnabled": true } ]I tried to override with proxyman-cli using below command in terminal
Also, will it be possible to give feature to modify rules settings using proxyman-cli to be allowed while proxyman still running ?
@NghiaTranUIT commented on GitHub (Jun 28, 2022):
The sample you sent me is exported from Proxyman UI, so it's only possible to import by the GUI too (In Map Remote -> Import). If you import this file via
proxyman-cli, it will yield the error as expected.Please note that you have to export via
proxyman-cli, then import it again by using theproxyman-clitoo. The reason is that the two formats (Export via GUI andproxyman-cli) are completely different.No, you have to close the app.
@NghiaTranUIT commented on GitHub (Jun 28, 2022):
With the given sample file, you can only import by Proxyman GUI, not
proxyman-cli@rakeshkarkare commented on GitHub (Jun 28, 2022):
Thanks @NghiaTranUIT let me try this
@rakeshkarkare commented on GitHub (Jun 28, 2022):
Hi @NghiaTranUIT ,
Thanks it is working 🙌🏾, if we export via proxyman-cli, then import it again by using proxyman-cli
tried with below sample request
{ "mapRemoteData": { "data": "WwogICAgewogICAgICAgICJtZXRob2QiOiB7CiAgICAgICAgICAgICJleGFjdCI6IFsKICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICAibmFtZSI6ICJQT1NUIgogICAgICAgICAgICAgICAgfQogICAgICAgICAgICBdCiAgICAgICAgfSwKICAgICAgICAicmVnZXgiOiAidXNlV2lsZGNhcmQiLAogICAgICAgICJmcm9tVVJMQ29tcG9uZW50IjogewogICAgICAgICAgICAicGF0aCI6ICIiLAogICAgICAgICAgICAicXVlcnkiOiAiIiwKICAgICAgICAgICAgImhvc3QiOiAiIiwKICAgICAgICAgICAgInNjaGVtZSI6ICIiLAogICAgICAgICAgICAicG9ydCI6ICIiCiAgICAgICAgfSwKICAgICAgICAiaWQiOiAiOUNFODk2RUQiLAogICAgICAgICJncmFwaFFMUXVlcnlOYW1lIjogIiIsCiAgICAgICAgInRvVVJMQ29tcG9uZW50IjogewogICAgICAgICAgICAicGF0aCI6ICIiLAogICAgICAgICAgICAicXVlcnkiOiAiIiwKICAgICAgICAgICAgImhvc3QiOiAibG9jYWxob3N0IiwKICAgICAgICAgICAgInNjaGVtZSI6ICJodHRwIiwKICAgICAgICAgICAgInBvcnQiOiAiNTAwMCIKICAgICAgICB9LAogICAgICAgICJtYXBGcm9tVVJMIjogImh0dHBzOlwvXC9nb29nbC5jb21cL2dhdGV3YXlcLzEuMFwvc3RhdGljIiwKICAgICAgICAiaXNJbmNsdWRpbmdQYXRocyI6IGZhbHNlLAogICAgICAgICJwcmVzZXJ2ZUhvc3RIZWFkZXIiOiBmYWxzZSwKICAgICAgICAibmFtZSI6ICJVbnRpdGxlZCIsCiAgICAgICAgImlzRW5hYmxlZCI6IHRydWUKICAgIH0KXQ==", "isEnabled": true } }@rakeshkarkare commented on GitHub (Jun 28, 2022):
@NghiaTranUIT Is it possible to invoke proxyman using terminal ?, as after the rule change from proxyman-cli, I want to start proxyman through terminal, instead of manually invoking proxyman-ui tool
@NghiaTranUIT commented on GitHub (Jun 29, 2022):
@rakeshkarkare it isn't possible for now, but It's a great idea to be able to restart Proxyman via CLI after you import the data. I will add it soon 👍
@rakeshkarkare commented on GitHub (Jun 29, 2022):
Thanks @NghiaTranUIT 🙌🏾 will wait for this new feature 😊