Skip to main content

Secryn CLI

PyPI Python License

Command-line interface for Secryn — manage your secrets, projects, and API keys without leaving the terminal.

Installation

Via pipx (recommended)

pipx install secryn-cli

From source

cd packages/cli
pipx install -e .

Via pip + venv

cd packages/cli
python3 -m venv .venv
.venv/bin/pip install -e .
ln -sf $(pwd)/.venv/bin/sc ~/.local/bin/sc

One-liner install script

curl -fsSL https://raw.githubusercontent.com/P4ciuf/secryn/main/packages/cli/install.sh | bash

Requires Python 3.10+.

Quick Start

# Login to your Secryn instance
sc auth login --email user@example.com --password "your-password"

# Or use a custom API URL
sc --api-url https://api.secryn.xyz/api/v1 auth login

The CLI stores configuration and session cookies in ~/.config/secryn/.

Commands

Authentication

sc auth login                                   # Interactive login
sc auth login --email <email> --password <pw>   # Non-interactive
sc auth logout                                  # Logout and clear cookies
sc auth whoami                                  # Show authenticated user
sc auth whoami --json                           # JSON output

Projects

sc projects list                        # List all projects
sc projects list --json                 # JSON output
sc projects create --name <name>        # Create a project
sc projects create --name <name>        # With description
  --description <desc>
sc projects delete --id <id>            # Delete (with confirmation)
sc projects delete --id <id> -f         # Skip confirmation

Secrets

sc secrets list --project-id <id>             # List secrets
sc secrets list --project-id <id> --json      # JSON output
sc secrets get --id <id>                      # Show secret (masked)
sc secrets get --id <id> --show-value         # Show in plain text
sc secrets get --id <id> --json               # JSON output
sc secrets create --project-id <id>           # Create a secret
  --name <name> --value <value>
  --notes <notes>                             # Optional notes
sc secrets update --id <id>                   # Partial update
  --name <new> --value <new>
  --notes <new>
sc secrets delete --id <id>                   # Delete secret
sc secrets delete --id <id> -f                # Skip confirmation
sc secrets export --project-id <id>           # Export as .env (stdout)
sc secrets export --project-id <id>           # Export to file
  -o .env

API Keys

sc api-keys list                        # List all keys
sc api-keys list --json                 # JSON output
sc api-keys create --name <name>        # Create key (read+write)
sc api-keys create --name <name>        # Create with specific permissions
  --permissions read
sc api-keys delete --id <id>            # Delete key
sc api-keys delete --id <id> -f         # Skip confirmation

User & Config

sc user info                # Show user profile
sc config                   # Show config paths and values
sc version                  # Show CLI version

Global Options

Option Description
--api-url <url> Override API base URL (default: http://localhost:3000)
--json Output in JSON format (where supported)
--force, -f Skip confirmation for destructive commands
--help Show help for any command or subcommand

Environment Variables

Variable Description
SECRYN_API_URL Alternative to --api-url
SECRYN_HOME Custom config directory

Configuration Files

The CLI stores its state in ~/.config/secryn/:

File Content
config.json API URL, user ID, email
cookies.json JWT session cookies (httpOnly)

License

Apache 2.0 — see LICENSE.

Metadata

Release files for secryn-cli 0.1.1

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

Source distribution (sdist)

Source distribution for secryn-cli 0.1.1
File Size Uploaded
secryn_cli-0.1.1.tar.gz 17.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for secryn-cli 0.1.1
File Interpreter ABI Platform
secryn_cli-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 35.4 kB

Release files / secryn_cli-0.1.1.tar.gz

Download URL secryn_cli-0.1.1.tar.gz
Size 17.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6503ba96f8e29679dcd23dc9fd171a18a77cf2502157868b809edde49e019657
BLAKE2b-256 checksum
How to use checksums
0e6d8d2bed4dd1d566d48b461db1b8a9ceceb6fc1ee95e0a105d3fa841598f19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 11, 2026.

Transparency log

Release files / secryn_cli-0.1.1-py3-none-any.whl

Download URL secryn_cli-0.1.1-py3-none-any.whl
Size 18.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3e62bea58e82186c3816ac9f5c6b2fb9021544c8dace5860e32869fa38e893be
BLAKE2b-256 checksum
How to use checksums
141c76cfa1056e21035bb71b0e78b90cc98e3c31b1cff28e045aa43581c4cd09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 11, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

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