Mascope's operations CLI: install, launch and back up a Mascope deployment.
Project description
Mascope CLI
The operations CLI for Mascope, Karsa's mass-spectrometry analysis platform. It installs, launches, backs up and manages a Mascope deployment — the application itself runs as Docker containers pulled from the project's registry.
Requirements
- Python 3.12
- Docker (with the compose plugin)
Quickstart
pip install mascope-cli
mascope init # create a runtime home: config, compose files, secrets
mascope cert gen # self-signed TLS cert (or install real certs)
mascope prod up # pull and start the production stack
mascope init creates the runtime home at ~/.mascope
(%LOCALAPPDATA%\Mascope on Windows) — configuration TOMLs you can edit,
docker compose files, and generated application secrets. Set MASCOPE_PATH
to place it elsewhere. Re-running init is safe: existing files are kept and
secrets are never regenerated.
To try Mascope without a deployment, the self-contained demo stack ships in the runtime home as well:
docker compose -f docker-compose.demo.yaml up -d
# then open http://localhost:8080 — login demo@mascope.app / mascope-demo
Everyday operations
mascope prod ps # container status
mascope prod logs --follow # stream logs
mascope prod update # update the stack to the latest release
mascope prod db backup # dump the database
mascope prod db restore --yes # restore the latest dump
mascope logs query --grep error # search the application's file logs
mascope env list # manage runtime environments
Run mascope --help or mascope <command> --help for the full reference.
mascope prod update pulls the target release images, restarts the stack
with them and runs any pending database migrations (preceded by an automatic
pre-migration dump). Move to a specific release with
mascope prod update --version v1.2.0, or pin the deployed version for all
commands with MASCOPE_VERSION; without a pin the stack follows the
latest release images.
Development
The Mascope source checkout exposes additional developer commands (dev,
test, agent, backend) that operate on the monorepo; they are not part
of the standalone install. See the
repository for the developer guide.
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 mascope_cli-2026.7.7.tar.gz.
File metadata
- Download URL: mascope_cli-2026.7.7.tar.gz
- Upload date:
- Size: 89.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5007fa0f8d1794887aa02dfefae7db77edda01f46427bcd36c8a34f015411c3
|
|
| MD5 |
eb55e03a2fd2444859ce6fe585e9b267
|
|
| BLAKE2b-256 |
b6f4ee113d06690be22af506fc8061b995ff05d76eff6949281b6ed54de6b41a
|
File details
Details for the file mascope_cli-2026.7.7-py3-none-any.whl.
File metadata
- Download URL: mascope_cli-2026.7.7-py3-none-any.whl
- Upload date:
- Size: 118.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db343de036bd9daad6c94d176e88113848ff0c63be52a9ed338356f5bfb66ada
|
|
| MD5 |
5f1af569d3bee55b77dafeac79a2a37b
|
|
| BLAKE2b-256 |
946b0e7c9f9848e82f7047decdf0dce828b0e4408b0bcabea6f06f1ceca2d895
|