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 --org-token <org-uuid>

# 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.

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
mcp Run the Baseshift MCP server on stdio

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

MCP

baseshift mcp runs an MCP server on stdio (start/stop clones and related tools). Log in with baseshift auth login first. Example Cursor config:

{
  "mcpServers": {
    "baseshift": {
      "command": "baseshift",
      "args": ["mcp"]
    }
  }
}

License

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

Metadata

Release files for baseshift-tailscale 3.5.2

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-tailscale 3.5.2
File
baseshift_tailscale-3.5.2-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
baseshift_tailscale-3.5.2-py3-none-manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details
baseshift_tailscale-3.5.2-py3-none-manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details
baseshift_tailscale-3.5.2-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details
baseshift_tailscale-3.5.2-py3-none-macosx_10_9_x86_64.whl Python 3 none macOS 10.9+ x86-64 Details

Total release size: 81.7 MB

Release files / baseshift_tailscale-3.5.2-py3-none-win_amd64.whl

Download URL baseshift_tailscale-3.5.2-py3-none-win_amd64.whl
Size 16.1 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
1b24e327b39bf1d811cecfe17ad33ac317cd96f6f291df69aa44fda5fec80c24
BLAKE2b-256 checksum
How to use checksums
aea0e86d97d62388c69475b7082b65f9fc9e3ce554bb768dcbbf7331e04a8bad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / baseshift_tailscale-3.5.2-py3-none-manylinux2014_x86_64.whl

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

Release files / baseshift_tailscale-3.5.2-py3-none-manylinux2014_aarch64.whl

Download URL baseshift_tailscale-3.5.2-py3-none-manylinux2014_aarch64.whl
Size 16.3 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
8a4ec2731ea4de658d86414412378cc884c5f4a1799f5b4d9e0c370b9acb3323
BLAKE2b-256 checksum
How to use checksums
59b92f38a3a8a17bbee60b206e574881ff5a5c0262a799a0fc9cbc8150505fe1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / baseshift_tailscale-3.5.2-py3-none-macosx_11_0_arm64.whl

Download URL baseshift_tailscale-3.5.2-py3-none-macosx_11_0_arm64.whl
Size 15.4 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
cf7befe26db676ad5d6388758fe51dd6162cf4402ac59f401415904fcc850a70
BLAKE2b-256 checksum
How to use checksums
e8b5d0369bfd9384b30dbe123a079ff6f35fbbbc2fd41230e98076563fa34da3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / baseshift_tailscale-3.5.2-py3-none-macosx_10_9_x86_64.whl

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

Release history Release notifications | RSS feed

3.7.0

5 release files

3.6.0

5 release files

3.5.3

5 release files

This release

3.5.2 This release

5 release files

3.5.0

5 release files

3.4.2

5 release files

3.4.1

5 release files

3.4.0

5 release files

3.3.4

5 release files

3.3.3

5 release files

3.3.2

5 release files

3.3.1

5 release files

3.3.0

5 release files

3.1.4

5 release files

3.1.2

5 release files

3.1.1

5 release files

2.12.1

5 release files

2.12.0

5 release files

2.11.6

5 release files

2.11.1

5 release files

2.11.0

5 release files

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