ADC is a command line utility to interface with APISIX's API.
It is built using the Cobra library.
ADC can be installed using the go install command:
go install github.com/api7/adc@latest
This will install the adc binary to your $GOPATH/bin directory.
You can also download the appropriate binary from the releases page:
wget https://github.com/api7/adc/releases/download/v0.1.0/adc_0.1.0_linux_amd64.tar.gz
tar -zxvf adc_0.1.0_linux_amd64.tar.gz
mv adc /usr/local/bin/adcImportant
Make sure that these directories are in your $PATH environment variable.
To view a list of all available commands, run:
adc --helpTo learn how to use a particular subcommand, for example, ping run:
adc ping --helpadc configureConfigures ADC with APISIX's server address and token. Running this command will prompt you for an APISIX server address and API token and saves them to a configuration file.
By default, ADC creates a configuration file at $HOME/apisix.yaml and this can be changed manually.
adc pingPings the configured APISIX instance to verify connectivity.
adc validate -f apisix.yamlValidates the provided APISIX configuration file.
adc syncSyncs the local configuration present in the $HOME/apisix.yaml file (or specified configuration file) to the connected APISIX instance.
adc dump --output apisix.yamlDumps the configuration of the connected APISIX instance to the specified configuration file.
adc diffShows the differences in configuration between the connected APISIX instance and the local configuration file.
adc openapi2apisix -o apisix.yaml -f openAPI.yamlConverts the configuration in OpenAPI format (openAPI.yaml) to APISIX configuration (apisix.yaml).
adc versionPrints the version of ADC. See Installation for details on installing the latest version.
adc completion <bash|zsh|fish|powershell>Generates autocompletion scripts for the specified shell.
This project is licensed under the Apache 2.0 License.