What is ampctl?
ampctl is the administration CLI for Amp engine operators. It provides a comprehensive command-line interface for managing all aspects of Amp infrastructure through the Admin API. This is the operator’s swiss-army knife for Amp administration.Administrative CLI Tool
ampctl is designed for DevOps engineers and administrators who need to:- Manage dataset lifecycles (register, deploy, list)
- Control extraction jobs (monitor, stop, delete)
- Monitor worker nodes and check health status
- Manage blockchain data providers
- Query storage locations and file metadata
- Validate SQL queries and schemas
Connection to Admin API
ampctl communicates with the Amp controller’s Admin API on port 1610:Configuration
The Admin API URL can be configured in three ways: Default behavior:--admin-urlflag (highest priority)AMP_ADMIN_URLenvironment variable- Default:
http://localhost:1610
Common Flags
All ampctl commands support these global flags:Admin API URL. Can also be set via
AMP_ADMIN_URL environment variable.Bearer authentication token for secured Admin API endpoints. Can also be set via
AMP_AUTH_TOKEN environment variable.Output results in JSON format for scripting and automation.
Authentication
Optional authentication token for secured Admin API endpoints:JSON Output
All commands support JSON output for scripting and automation:Command Groups
ampctl provides the following command groups:- datasets - Dataset lifecycle management (register, deploy, list)
- jobs - Job control and monitoring (list, stop, progress)
- workers - Worker node monitoring (list, inspect, health)
- providers - Provider configuration (register, list, delete)