This is the next generation Go based Airbyte CLI.
- Clone this repo to your working environment
git clone https://github.com/harshithmullapudi/airbyte-cli.git
- Install go (if not installed already).
brew install go
(for mac users) - Jump to the airbyte-cli directory and run
go install .
- You're all set to fly
Before we interact with Airbyte API, we need to set Airbyte API URL and workspace, for which you can use the following command
$ airbyte set-config
An Airbyte CLI command has the following structure:
$ airbyte <command> <subcommand> [options and parameters]
<command>
get - Get configuration of Sources/Destinations/Connections
search - Search in sources
check - Check connection to Source/Destination
logs - Fetch logs for a job
set-config - Set your airbyte url and workspaceID
help - Help about any command
To view help documentation, use one of the following:
$ airbyte -h
$ airbyte <command> -h
$ airbyte <command> <subcommand> -h
Return all
- sources (
/v1/sources/list
) - destinations (
/v1/destinations/list
) - connections (
/v1/web_backend/connections/list
)
You can use page(p) and offset(o) to fetch sources respectively.
To list sources, the command would be:
$ airbyte get sources
To get a source, the command would be:
$ airbyte get source [sourceId]
To get jobs for a connection, the command would be:
$ airbyte get jobs [connectionId]
- sources
- connections
To search in sources, the command would be:
$ airbyte search sources [string]
Validate
- source (
/v1/sources/check_connection
) - destination (
/v1/destinations/check_connection
)
To validate a source, the command would be:
$ airbyte check source [sourceId]
Get logs for a job
$ airbyte logs [jobId]