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 get <project-id>
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 delete <project-id> <branch-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 get <project-id> <endpoint-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 databases drop <project-id> <endpoint-id> mydb
lampion roles list <project-id> <endpoint-id>
lampion roles create <project-id> <endpoint-id> app_user
lampion roles drop <project-id> <endpoint-id> app_user
# Extensions
lampion extensions list <project-id> <endpoint-id>
lampion extensions install <project-id> <endpoint-id> pgvector
lampion extensions uninstall <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 remove-rule <project-id> <branch-id> <rule-id>
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>
# Compliance — security knowledge base for your AI, GDPR subprocessors
lampion compliance questionnaire --locale en --format md -o lampion-security.md
lampion compliance questionnaire --format csv -o questionnaire.csv
lampion compliance subprocessors
lampion compliance dpa # DPA status
lampion compliance dpa-accept --company "Acme SAS" --registration "SIREN 123456789" --signer "Jane Doe" --title DPO
lampion compliance dpa-certificate --pdf dpa.pdf
lampion compliance residency --pdf residency.pdf # whole organization
lampion compliance residency --project <project-id> --pdf p.pdf --locale en
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 — not available yet |
Only fr-par-1 is open today: no OVH data plane is configured, so creating a project in
fr-gra-1 fails.
Metadata
Release files for lampion-cli 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lampion_cli-0.2.0.tar.gz | 10.9 kB | With provenance | Details for lampion_cli-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lampion_cli-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for lampion_cli-0.2.0-py3-none-any.whl |
Total release size: 23.4 kB
Release files / lampion_cli-0.2.0.tar.gz
| Download URL | lampion_cli-0.2.0.tar.gz |
|---|---|
| Size | 10.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f59b25383eb1c235371966a057c29e0397ed31f1201f1cd79836d7b51fbfcf23
|
|
BLAKE2b-256 checksum How to use checksums |
d8bd5bf576027e16e954be5321dd9f5510d6f680a8edbe3a5a537ed2dc7065fd
|
| 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 Oct 11, 2026.
Transparency logRelease files / lampion_cli-0.2.0-py3-none-any.whl
| Download URL | lampion_cli-0.2.0-py3-none-any.whl |
|---|---|
| Size | 12.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0488e62088f890490ec05e4fa46f5c5a2bbc8f1138ff65871f98e6dfb32b61b
|
|
BLAKE2b-256 checksum How to use checksums |
6a2b1113c393d377322a81ed4d4b897f8c525e5bff9166e77e19d3f0c23e330d
|
| 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 Oct 11, 2026.
Transparency logSecurity for lampion-cli 0.2.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for lampion_cli-0.2.0.tar.gz
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 Oct 11, 2026.
Transparency logA 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.