Skip to main content

Lampion CLI

Command-line interface for Lampion — sovereign serverless PostgreSQL hosted in France.

Install

pip install lampion-cli

Setup

export LAMPION_TOKEN=lmp_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# Optional: export LAMPION_API_URL=https://api.lampion.cloud

Generate an API key at https://app.lampion.cloud/settings

Usage

# Projects
lampion projects list
lampion projects create my-app --region fr-par-1
lampion projects delete <project-id>

# Branches
lampion branches list <project-id>
lampion branches create <project-id> dev --parent <project-id>
lampion branches reset <project-id> <branch-id>
lampion branches merge <project-id> <branch-id> --dry-run
lampion branches promote <project-id> <branch-id>

# Endpoints (computes)
lampion endpoints list <project-id>
lampion endpoints suspend <project-id> <endpoint-id>
lampion endpoints resume <project-id> <endpoint-id>

# SQL
lampion sql <project-id> <endpoint-id> "SELECT * FROM users LIMIT 10"

# Schema introspection
lampion schema <project-id> --database postgres --schema public

# Databases & Roles
lampion databases list <project-id> <endpoint-id>
lampion databases create <project-id> <endpoint-id> mydb
lampion roles list <project-id> <endpoint-id>
lampion roles create <project-id> <endpoint-id> app_user

# Extensions
lampion extensions list <project-id> <endpoint-id>
lampion extensions install <project-id> <endpoint-id> pgvector

# Monitoring
lampion metrics <project-id>
lampion slow-queries <project-id> <endpoint-id>
lampion logs <project-id> <endpoint-id> --lines 50
lampion usage <project-id>

# Backups (PITR)
lampion backups list <project-id>
lampion backups create <project-id> <branch-id> "before-migration"
lampion backups restore <project-id> <backup-id>

# Dump
lampion dump <project-id> <endpoint-id> --database postgres -o dump.sql

# PII Masking
lampion anon status <project-id> <branch-id>
lampion anon enable <project-id> <branch-id>
lampion anon add-rule <project-id> <branch-id> --table users --column email --function "anon.fake_email()"
lampion anon disable <project-id> <branch-id>

# IP Allowlist
lampion allowlist get <project-id> <endpoint-id>
lampion allowlist set <project-id> <endpoint-id> 1.2.3.4/32 5.6.7.8/32

# Permissions
lampion permissions list <project-id> <endpoint-id>
lampion permissions grant <project-id> <endpoint-id> --role app_user --table users --privilege SELECT
lampion permissions revoke <project-id> <endpoint-id> --role app_user --table users --privilege ALL

# Data residency
lampion residency <project-id>

JSON output

Most list commands support --json for machine-readable output:

lampion projects list --json
lampion branches list <project-id> --json

Regions

Region Provider Location
fr-par-1 Scaleway Paris, France
fr-gra-1 OVH Cloud Gravelines, France

Release files for lampion-cli 0.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 lampion-cli 0.1.0
File Size Uploaded
lampion_cli-0.1.0.tar.gz 8.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lampion-cli 0.1.0
File Interpreter ABI Platform
lampion_cli-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.0 kB

Release files / lampion_cli-0.1.0.tar.gz

Download URL lampion_cli-0.1.0.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8cca9c0bcdc1c35b1203061b7b25b31aeb80076aa0330438bca5b36498700f46
BLAKE2b-256 checksum
How to use checksums
8b8036a5a1c45866b0cfdef5d54e3d1046bc7c681405d1659bb3527fa68ec208
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.

Transparency log

Release files / lampion_cli-0.1.0-py3-none-any.whl

Download URL lampion_cli-0.1.0-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
529b6c5a390c0a0d03deb7a47798499fd103139e95e5bc71553c8f15508482f2
BLAKE2b-256 checksum
How to use checksums
fea402ae74b6a069326c7f9290687ed622331b826f24e95f546e46a07d1cafca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 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