Skip to main content

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.

Metadata

Release files for fivetran-cli 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fivetran-cli 1.1.0
File Size Uploaded Provenance Actions
fivetran_cli-1.1.0.tar.gz 55.3 kB Without provenance Details for fivetran_cli-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fivetran-cli 1.1.0
File Interpreter ABI Platform Actions
fivetran_cli-1.1.0-py3-none-any.whl Python 3 none any Details for fivetran_cli-1.1.0-py3-none-any.whl

Total release size: 138.0 kB

Release files / fivetran_cli-1.1.0.tar.gz

Download URL fivetran_cli-1.1.0.tar.gz
Size 55.3 kB
Tags Source
SHA-256 checksum
How to use checksums
aaa0faf8a3d4df35d1000981cde589c4be0848f1f93b7a67228da8b5c7e54a4f
BLAKE2b-256 checksum
How to use checksums
7a78424b9165bc91f4caea9099a41c2216a3449351e27ef8259f89537278eb07
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.1.0-py3-none-any.whl

Download URL fivetran_cli-1.1.0-py3-none-any.whl
Size 82.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e58da2a4e921bd8debcb442b7d703a648b4a7148c8c526b233762035c259b33
BLAKE2b-256 checksum
How to use checksums
36a5e6b24b5c6657baee85c795b2d4ecac6642541ef9d84650cd134fd2a58334
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.7

Security for fivetran-cli 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page