ADC
The ADC CLI tool is a command-line interface for interacting with the APISIX's API. It is built using the Golang Cobra library and provides several sub-commands for managing your APISIX instance.
Usage
To use the ADC CLI tool, run the adc command followed by the sub-command you wish to use. For example, to check the connection to APISIX API, run the following command:
adc ping
This will verify the connection to the APISIX API and print a success message.
The following sub-commands are available:
configure: Configure the ADC CLI tool with the APISIX's server address and token.
ping: Verify the connection to the APISIX API.
sync: Sync your local configuration to APISIX instance.
diff: Show the differences between your local configuration and the APISIX instance.
dump: Dump your APISIX configurations to a local file.
Use the --help flag with any sub-command to see its usage information.
Configuration
The ADC CLI tool can be configured using the configure sub-command. This sub-command will prompt you for your APISIX server address and API token, and save them to a configuration file.
The configuration file is located at $HOME/.adc.yaml and can be edited manually if necessary.
License
This project is licensed under the MIT License - see the LICENSE file for details.