fivetran-cli
The Fivetran CLI lets you manage your Fivetran account from the terminal. Supported operations include creating and updating connections, controlling schema settings, managing users and teams, deploying custom connectors, and more.
To learn more, see our Fivetran CLI documentation
Install
pip install fivetran-cli
Verify the installation:
fivetran --version
Requirements
- Python 3.10 or later
- A Fivetran account and API key for commands that communicate with Fivetran
Authentication
Fivetran API commands require a Base64-encoded API key. Set it as an environment variable:
export FIVETRAN_API_KEY="<base64-encoded-api-key>"
You can also pass the key to an individual command with --api-key:
fivetran beta connection list --api-key "<base64-encoded-api-key>"
See the Fivetran REST API getting started guide for instructions on creating and encoding an API key.
REST API commands
REST API operations use the following command structure:
fivetran beta <resource> <operation> [options]
For example:
List up to 10 connections:
fivetran beta connection list --limit 10
Retrieve one connection:
fivetran beta connection get --connection-id <connection-id>
Trigger a connection sync:
fivetran beta connection sync --connection-id <connection-id>
Use --help to discover the available resources, operations, and command-specific options:
fivetran beta --help
fivetran beta connection --help
fivetran beta connection list --help
Request payloads
Commands that accept a request body support inline JSON, a JSON file, or standard input:
fivetran beta connection create --config '{"group_id":"<group-id>","service":"<service>"}'
fivetran beta connection create --config-file connection.json
Refer to the Fivetran REST API reference for the fields required by each operation.
Output options
REST API commands produce readable terminal output by default. The following options control how successful results are displayed:
| Option | Description |
|---|---|
--output text |
Use formatted terminal output. This is the default. |
--output json |
Write the complete response as JSON. |
--fields id,service |
Display only the selected fields or columns. |
--all-columns |
Show all columns instead of the default 8. |
--output-file <path> |
Write successful output to a file instead of stdout. |
Examples:
Return machine-readable output:
fivetran beta connection list --output json
Select columns for a compact table:
fivetran beta connection list --fields id,service,schema
Write the complete response to a file:
fivetran beta connection list --output json --output-file connections.json
Connector SDK commands
Installing fivetran-cli also installs the Fivetran Connector SDK. Its commands remain available through the same fivetran executable:
Run a connector locally:
fivetran debug
Deploy a connector to Fivetran:
fivetran deploy
See the Connector SDK getting started guide and Connector SDK CLI command reference for details.
Help
Run the following command to see all installed commands, including commands provided by Connector SDK plugins:
fivetran --help
Maintenance
This package is actively maintained by Fivetran developers. Contact the Fivetran Support team for assistance.
Release files for fivetran-cli 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fivetran_cli-1.0.0.tar.gz | 42.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fivetran_cli-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 109.3 kB
Release files / fivetran_cli-1.0.0.tar.gz
| Download URL | fivetran_cli-1.0.0.tar.gz |
|---|---|
| Size | 42.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
843337ad43577ab4a05cbda24778c4fac8d2442a44435c2284a65dd69c2c625c
|
|
BLAKE2b-256 checksum How to use checksums |
d4b79c405e068ff3539b3586c2784274369858734758a5e210417302da3f1dd0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.7
|
Release files / fivetran_cli-1.0.0-py3-none-any.whl
| Download URL | fivetran_cli-1.0.0-py3-none-any.whl |
|---|---|
| Size | 67.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e14734e6ea9d2ceb8c4bd25e56857f78ae6769ff113dd51c8fc4670921f5e003
|
|
BLAKE2b-256 checksum How to use checksums |
3747f0638cedb45245bf25c8e3618e09e3e22e9f5a01dfe76aa1ab78f7dd5d6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.7
|