Skip to main content

baseshift

Command-line client for Baseshift. Create dubs (masked or subsetted copies of a source database), take snapshots, and start clones for development and testing.

Install

pip install baseshift

Platform wheels ship for:

  • macOS (Intel and Apple Silicon)
  • Linux (x86_64 and arm64)
  • Windows (amd64)

The default install talks to clones over WireGuard. For Tailscale, install the companion extra so both packages stay on the same version:

pip install 'baseshift[ts]'

Confirm the install:

baseshift --version
baseshift --help

Quick start

# Browser OAuth (default). Use --method=direct for email/password.
baseshift auth login

# Optional: write ~/.baseshift/config (org token and default dub)
baseshift init

# Create a cloud dub with demo data, or point at your own Postgres.
baseshift dub create --name my-dub --use-demo-db --encryption-password MyKey123
baseshift dub list

# Snapshot, then start a clone and print connection details.
baseshift snapshot create --dub my-dub --wait
baseshift server-clone start --dub my-dub
baseshift server-clone list --dub my-dub
baseshift server-clone stop

--dub accepts a name or a UUID. A name is resolved by the API; pass --org-token (or set BASESHIFT_ORG_TOKEN / orgToken in config) when the same name exists in more than one org. A UUID never needs --org-token.

dub create and dub list use your only organization when --org-token is omitted. When you belong to more than one organization, pass --org-token.

Commands

Command What it does
auth Log in, log out, and check authentication status
init Create ~/.baseshift/config with default org and dub
dub Create and manage dubs (cloud or self-hosted Helm)
data-env Create and manage data environments and their snapshots
server-clone Start, stop, and list clones on Baseshift servers
local-clone Pull or run a dub's snapshot image with local Docker
snapshot Create, check, and list snapshots of a dub

Run baseshift <command> --help (and baseshift dub create -h) for flags. Common dub actions: create, list, describe, status, health-check, validate-values, configure-source, subset, masking.

Cloud dub against your database

baseshift dub create --name my-dub \
  --hostname mydb.example.com --database acme --username app \
  --password-stdin --encryption-password MyKey123

Self-hosted dub (Helm values)

baseshift dub create --deployment self-hosted --name my-onprem-dub \
  --hostname mydb.example.com --database acme --username dubhub \
  --password-stdin --registry-type none
baseshift dub validate-values --values-file values.yaml

Local Docker clone

baseshift local-clone pull --dub my-dub
baseshift local-clone run --dub my-dub -- --publish 5432:5432

Configuration

Values resolve as CLI flag → environment variable → ~/.baseshift/config → default.

baseshift init writes JSON to ~/.baseshift/config:

{
    "orgToken": "<org-uuid>",
    "dubUuid": "<dub-uuid>"
}
Setting Flag Environment Config key
Organization --org-token BASESHIFT_ORG_TOKEN orgToken
Default dub --dub / --dub-uuid BASESHIFT_DUB_UUID dubUuid

Useful environment variables:

  • BASESHIFT_VERBOSE=1 — DEBUG logs and full tracebacks (same as -v)
  • BASESHIFT_DISABLE_SENTRY=1 — disable error telemetry
  • BASESHIFT_HELM_BIN — override the bundled Helm binary used by dub validate-values

License

BSD 2-Clause. See LICENSE, THIRD-PARTY-NOTICES, and LICENSES-Apache-2.0-Helm.txt (bundled Helm).

Metadata

Release files for baseshift 3.7.1

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

Built distributions (wheels)

Table of built distributions (wheels) for baseshift 3.7.1
File Actions
baseshift-3.7.1-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for baseshift-3.7.1-py3-none-win_amd64.whl
baseshift-3.7.1-py3-none-manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for baseshift-3.7.1-py3-none-manylinux2014_x86_64.whl
baseshift-3.7.1-py3-none-manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for baseshift-3.7.1-py3-none-manylinux2014_aarch64.whl
baseshift-3.7.1-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for baseshift-3.7.1-py3-none-macosx_11_0_arm64.whl
baseshift-3.7.1-py3-none-macosx_10_9_x86_64.whl Python 3 none macOS 10.9+ x86-64 Details for baseshift-3.7.1-py3-none-macosx_10_9_x86_64.whl

Total release size: 104.9 MB

Release files / baseshift-3.7.1-py3-none-win_amd64.whl

Download URL baseshift-3.7.1-py3-none-win_amd64.whl
Size 21.6 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
d7bbbae981951caa2d2f11ec9ce03f352c3bc8f1bda0d56df845a5e1c557f364
BLAKE2b-256 checksum
How to use checksums
8009cc2c5efa8da18eef830d16d989f08f2a8e4d9c87ce01e2231b9106b6acf6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / baseshift-3.7.1-py3-none-manylinux2014_x86_64.whl

Download URL baseshift-3.7.1-py3-none-manylinux2014_x86_64.whl
Size 21.1 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
c0326182cc36b48c67a8a4d8c8e56177ea506382f35b158d815117f136096523
BLAKE2b-256 checksum
How to use checksums
f408fdd6aa2e3d869479d368f5caa45845204bf7c7dcc4208e135dba79816986
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / baseshift-3.7.1-py3-none-manylinux2014_aarch64.whl

Download URL baseshift-3.7.1-py3-none-manylinux2014_aarch64.whl
Size 19.3 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
a39760f3f5cd607347266baab2226de1024e9ff57adbbd51179e22ee2165fe72
BLAKE2b-256 checksum
How to use checksums
175b318f6fb6b3448397d77781c35f8027ccd803138b21f9d29ad63d94ed982d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / baseshift-3.7.1-py3-none-macosx_11_0_arm64.whl

Download URL baseshift-3.7.1-py3-none-macosx_11_0_arm64.whl
Size 20.9 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
7f80fe80a51a0e3f82d876a235b20464955941db1ed0e625e00e7ca1bf973a4d
BLAKE2b-256 checksum
How to use checksums
daf82c5b3158ddede4efff7edf5957c55e0b329730afc8add04e6afa9742ee8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / baseshift-3.7.1-py3-none-macosx_10_9_x86_64.whl

Download URL baseshift-3.7.1-py3-none-macosx_10_9_x86_64.whl
Size 22.0 MB
Tags Python 3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
fe2ee5a059c239f2e0e8a5fbd4926d6791f9ded0fc3b1a8bcadfb4eac931e9f0
BLAKE2b-256 checksum
How to use checksums
a828b4462c6004966cb4814ca0d45052cd28e8983929ad5ea17dc51e87a36fbc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for baseshift 3.7.1

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.

Release history Release notifications | RSS feed

This release

3.7.1 This release

5 release files No provenance

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