Command line wrapper for the Fivetran REST API and Connector SDK
Project description
fivetran-cli
Thin command line wrapper around the Fivetran REST API and Connector SDK.
Beta: Fivetran REST API commands are exposed under
fivetran betawhile their command names, flags, and output formatting are still stabilizing. Connector SDK commands remain available at their established top-level shape, for examplefivetran deploy.
fivetran [global-options] beta <resource> <operation> [arguments] [options]
Installation
python3 -m pip install -U fivetran-cli
Verify the installed CLI:
fivetran --help
fivetran deploy --help
fivetran beta connection list --help
Credentials default to FIVETRAN_API_KEY. Set it to the single Base64-encoded API key shown by Fivetran. Or you can also pass it in via --api-key option.
fivetran --api-key "$FIVETRAN_API_KEY" beta connection list
fivetran beta connection create --config-file connection.json
fivetran deploy
Usage
Global options may be placed before or after the resource command.
fivetran beta connection list --api-key "$FIVETRAN_API_KEY"
fivetran beta connection-schema get connection_id
fivetran beta connector-metadata get google_ads
fivetran beta public-connector list
Output defaults to readable text: list responses render as aligned, color-coded
tables and detail responses as aligned key/value sections. Use --output json
for compact JSON for scripting. Flag and config conventions follow the dbt CLI.
fivetran beta connection list # default text table
fivetran beta connection get connection_id # default text detail
fivetran beta connection list --output json # compact JSON
Output options (each with a FIVETRAN_* env override where noted):
| Flag | Env | Effect |
|---|---|---|
--output {text,json} |
FIVETRAN_OUTPUT |
Output format (default text) |
--output-file PATH |
— | Write rendered output to a file |
--use-colors / --no-use-colors |
FIVETRAN_USE_COLORS |
Toggle ANSI color (default on) |
--printer-width N |
FIVETRAN_PRINTER_WIDTH |
Wrap/truncation width (default terminal width) |
--wide |
— | Show all non-sensitive fields/columns, no truncation |
--fields a,b,c |
— | Explicit fields/columns to show |
Curated resources (connection, destination, group, user, team, webhook,
transformation) show a focused set of columns by default; everything else is
shown with --wide or --output json. Sensitive values (passwords, secrets,
tokens, API/private keys, and exact key fields) are always redacted in text
output.
Create and update commands accept configuration as inline JSON or a JSON file:
fivetran beta private-link create --config-file private-link.json
fivetran beta connection-schema column update connection_id schema table column --config '{"enabled":false}'
Destructive commands require --yes in non-interactive mode.
Included Commands
Core resources:
account getcertificate connection list|get|approve|revokecertificate destination list|get|approve|revokeconnection list|get|create|update|delete|sync|resync|testconnector-sdk-package list|get|deletedestination list|get|create|update|delete|testfingerprint connection list|get|approve|revokefingerprint destination list|get|approve|revokegroup list|get|create|update|deletegroup connection listgroup user list|add|removegroup public-key getgroup service-account get
Access management:
user list|get|invite|update|deleteuser account-role removeuser connection list|get|add|update|removeuser group list|get|add|update|removeteam list|get|create|update|deleteteam account-role removeteam connection list|get|add|update|removeteam group list|get|add|update|removeteam user list|get|add|update|removerole listsystem-key list|get|create|update|delete|rotate
Schemas and metadata:
connection-schema get|setup|update|reload|resync-tableconnection-schema schema updateconnection-schema table updateconnection-schema column list|update|drop|drop-blockedconnector-metadata list|getpublic-connector list
Networking:
hybrid-deployment-agent list|get|create|delete|regenerate-auth|reset-credentialslog-service list|get|create|update|delete|testlog-service account get|create|update|deleteproxy-agent list|get|create|delete|regenerate-secretsproxy-agent connection listprivate-link list|get|create|update|deletewebhook list|get|create-account|create-group|update|delete|test
Transformations:
transformation list|get|create|update|delete|run|cancel|upgradetransformation package-metadata list|gettransformation-project list|get|create|update|delete|test
Connector SDK:
initdebugdeploypackageresetversionhelp
Connector SDK commands are provided by fivetran-connector-sdk and remain at their existing top-level shape, for example fivetran deploy.
Not Included Yet
The remaining gaps are intentionally limited to endpoints that need behavior beyond the generic JSON request/response wrapper, or endpoints whose user-facing command shape needs more validation before release.
- Connector SDK package create/update/download, because those require file upload/download handling rather than JSON-only request bodies.
- Hub registration
- Group destination listing, pending confirmation of a supported REST endpoint
- Interactive connector setup workflows
- Curated table/detail views for the long tail of resources (connection, destination, group, user, team, webhook, and transformation are curated today; the rest use the generic all-columns-capped fallback)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fivetran_cli-0.1.13.tar.gz.
File metadata
- Download URL: fivetran_cli-0.1.13.tar.gz
- Upload date:
- Size: 29.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
485326e9503228832059f6bd79a5010eea9625b56add233f7302ebcde5979728
|
|
| MD5 |
8d28747caae6912f077a1ed2805ae399
|
|
| BLAKE2b-256 |
e02f6fd7e33e03da0eb6bf24cb545767aefa85c1af0ee9cee29f7c10a6fae8a1
|
File details
Details for the file fivetran_cli-0.1.13-py3-none-any.whl.
File metadata
- Download URL: fivetran_cli-0.1.13-py3-none-any.whl
- Upload date:
- Size: 23.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6af90117b18034bd5507f360cd48aded8eaae9f8b92635dbd77430ebf6fce58b
|
|
| MD5 |
8759ed049e306a35a68498de755c2526
|
|
| BLAKE2b-256 |
a4036f13f5d0f68107716b68ab4910a729d1c9a0e1aeec728ff75a04ed856dae
|