Settings Management
Export the rules of this workspace (mock rules, filters, redirects, SSL domains, scripts, and the other rule kinds) to a JSON file for backup, sharing, or migrating between machines. In a git worktree, apxy config export reads <worktree>/.apxy/rules.json. Add --global to export the global rules, ~/.apxy/rules.json. The file also holds the custom CAs of this machine.
apxy config import loads the file into the rules of this workspace, or into the global rules with --global, and pushes them to the running proxy. Each rule kind in the file replaces that kind in the rules file.
CLI
See CLI Reference → Config for apxy config export and apxy config import.
Quick example:
apxy config export --file ./apxy-config.json
apxy config import --file ./apxy-config.jsonUse Cases
Team configuration sharing
Export your debugging setup once and share the JSON with teammates so everyone starts from the same rule baseline.
Backup before updates
Save configuration to a dated file before upgrading APXY.
Consistent environments
Import the same JSON on multiple machines when you need identical proxy behavior across laptops or CI agents.