Skip to Content

apxy setup

Configure certificates, SSL interception, mobile devices, and project settings.

apxy init

Initialize a project-scoped APXY workspace. Creates a .apxy/ directory with isolated configuration, database, certificates, and mock rules.

After running init, start with apxy start --project-dir .

apxy init [flags]

apxy certs

Generate, inspect, and trust the APXY root CA certificate.

apxy certs generate

Generate a new root Certificate Authority (CA) certificate and private key for HTTPS interception.

apxy certs generate [flags]
FlagTypeDefaultDescription
--cert-dirstring~/.apxy/certsCertificate directory

apxy certs info

Show subject, issuer, serial number, validity dates, and key usage for the APXY root CA certificate.

apxy certs info [flags]
FlagTypeDefaultDescription
--cert-dirstring~/.apxy/certsCertificate directory

apxy certs trust

Install the APXY root CA certificate into the system trust store (may require sudo on macOS).

apxy certs trust [flags]
FlagTypeDefaultDescription
--cert-dirstring~/.apxy/certsCertificate directory

apxy certs custom

Manage custom Certificate Authorities bound to domain patterns. Paid feature.

apxy certs custom add

Add a custom CA for a domain pattern.

apxy certs custom add [flags]

Examples:

apxy certs custom add --domain "*.example.com" \ --cert ./ca.pem --key ./ca-key.pem
FlagTypeDefaultDescription
--certstring-Path to CA certificate file (.crt or .pem) (required)
--domainstring-Domain pattern (e.g. *.example.com) (required)
--keystring-Path to CA private key file (.key or .pem) (required)
--labelstring-Optional label for the CA
--no-trust-falseSkip installing the CA in the system trust store

apxy certs custom list

List all custom CAs.

apxy certs custom list [flags]
FlagTypeDefaultDescription
--formatstringjsonOutput format: json or toon
-q, --quiet-falseOutput only IDs, one per line

apxy certs custom info

Show detailed information about a custom CA.

apxy certs custom info [flags]
FlagTypeDefaultDescription
--domainstring-Domain pattern (required)

apxy certs custom remove

Remove a custom CA by domain pattern or all custom CAs with --all.

apxy certs custom remove [flags]
FlagTypeDefaultDescription
--all-falseApply to all resources
--domainstring-Domain pattern
--dry-run-falsePreview without executing

apxy certs custom trust

Install a previously added custom CA certificate into the system trust store.

apxy certs custom trust [flags]
FlagTypeDefaultDescription
--domainstring-Domain pattern (required)

See SSL Proxying — Custom CAs for details.


apxy ssl

Manage per-domain HTTPS interception rules for the running proxy.

apxy ssl enable

Enable HTTPS interception for a specific domain, allowing the proxy to decrypt and inspect TLS traffic.

apxy ssl enable [flags]
FlagTypeDefaultDescription
--control-urlstringhttp://localhost:8081Control API URL
--domainstring-Domain to enable (required)

apxy ssl disable

Disable HTTPS interception for a specific domain or all domains. Traffic to disabled domains will pass through as opaque TLS.

apxy ssl disable [flags]
FlagTypeDefaultDescription
--all-falseApply to all resources
--control-urlstringhttp://localhost:8081Control API URL
--domainstring-Domain to disable
--dry-run-falsePreview without executing

apxy ssl list

List all domains with HTTPS interception enabled.

apxy ssl list [flags]
FlagTypeDefaultDescription
--control-urlstringhttp://localhost:8081Control API URL
--formatstringjsonOutput format: json or toon
-q, --quiet-falseOutput only IDs, one per line

See SSL Proxying for details.


apxy setup mobile

Get mobile device setup instructions.

apxy setup mobile setup

Print step-by-step instructions for connecting mobile devices to the APXY proxy. Auto-detects host LAN IP.

apxy setup mobile setup [flags]

Examples:

apxy setup mobile setup --platform ios apxy setup mobile setup --platform android apxy setup mobile setup --qr
FlagTypeDefaultDescription
--platformstring-Target platform: ios, android, or show all
--portint8080Proxy port
--qr-falseDisplay QR code for mobile setup page

See Mobile Setup for details.


apxy setup settings

Export and import APXY configuration. Paid feature.

apxy setup settings export

Export all current APXY settings as JSON to stdout or to a file.

apxy setup settings export [flags]
FlagTypeDefaultDescription
--filestringstdoutOutput file path

apxy setup settings import

Import APXY settings from a previously exported JSON file.

Warning: This overwrites all current settings.

apxy setup settings import [flags]
FlagTypeDefaultDescription
--dry-run-falsePreview without executing
--filestring-Configuration file to import (required)

See Settings Management for details.


Inherited Options

FlagTypeDefaultDescription
--configstring./configs/default.yamlConfig file path
--error-formatstringtextError output format: text or json
--help-formatstringdefaultHelp output format: default or agent
--verbose-falseEnable verbose output
Last updated on