Skip to main content

Tek Secrets CLI

Project description

tek-secrets

Usage:

$ tek-secrets [OPTIONS] COMMAND [ARGS]...

Options:

  • --install-completion: Install completion for the current shell.
  • --show-completion: Show completion for the current shell, to copy it or customize the installation.
  • --help: Show this message and exit.

Commands:

  • login: Authenticate with GitHub and authorize...
  • user: Retrieve and display information about the...
  • logout: Terminate the current authenticated session.
  • projects
  • env

tek-secrets login

Authenticate with GitHub and authorize against Tek Secrets

This command:

  1. Initiates GitHub OAuth flow
  2. Retrieves GitHub access token
  3. Authenticates with the Tek Secrets API using the GitHub token
  4. Displays authentication status and user information

Raises: typer.Exit: If GitHub token retrieval fails

Usage:

$ tek-secrets login [OPTIONS]

Options:

  • --help: Show this message and exit.

tek-secrets user

Retrieve and display information about the currently authenticated user.

Requires: - Active authentication session (user must be logged in)

Outputs: - User information in key-value format - Error message if not authenticated or request fails

Usage:

$ tek-secrets user [OPTIONS]

Options:

  • --help: Show this message and exit.

tek-secrets logout

Terminate the current authenticated session.

Clears the stored access token and ends the user session.

Usage:

$ tek-secrets logout [OPTIONS]

Options:

  • --help: Show this message and exit.

tek-secrets projects

Usage:

$ tek-secrets projects [OPTIONS] COMMAND [ARGS]...

Options:

  • --help: Show this message and exit.

Commands:

  • list: List all projects for the authenticated user.
  • show: Display detailed information about a...

tek-secrets projects list

List all projects for the authenticated user.

Args: organization_id (Optional): The organization ID to filter projects. If not provided, user will be prompted to select one.

Behavior: - Requires authenticated session - If no organization_id provided, prompts user to select one - Makes API request to fetch projects - Displays projects in list format

Raises: typer.Exit: If user is not authenticated or no projects found

Usage:

$ tek-secrets projects list [OPTIONS]

Options:

  • -o, --org TEXT: Organization ID
  • --help: Show this message and exit.

tek-secrets projects show

Display detailed information about a specific project.

Args: project_id (Optional): The project ID to view details. If not provided, user will be prompted to select one.

Behavior: - Requires authenticated session - If no project_id provided, prompts user to select one - Makes API request to fetch project details - Displays project information

Raises: typer.Exit: If user is not authenticated

Usage:

$ tek-secrets projects show [OPTIONS]

Options:

  • -p, --project TEXT: Project ID
  • --help: Show this message and exit.

tek-secrets env

Usage:

$ tek-secrets env [OPTIONS] COMMAND [ARGS]...

Options:

  • --help: Show this message and exit.

Commands:

  • get: Retrieve secrets for a specific project...
  • update: Update environment secrets using values...

tek-secrets env get

Retrieve secrets for a specific project environment.

Args: organization_id (Optional): Organization identifier project_id (Optional): Project identifier env (Optional): Target environment slug

Behavior: - Requires authenticated session - If IDs not provided, interactively prompts for selection - Displays environment variables in readable format

Raises: typer.Exit: If user is not authenticated

Usage:

$ tek-secrets env get [OPTIONS]

Options:

  • -o, --org TEXT: Organization ID
  • -p, --project TEXT: Project ID
  • -e, --env TEXT: Project environment
  • --output-env FILE: Path to save the environment variables
  • --help: Show this message and exit.

tek-secrets env update

Update environment secrets using values from a .env file.

Args: env_file (Path): Path to .env file containing updated secrets env_slug (Optional): Environment identifier slug organization_id (Optional): Organization identifier project_id (Optional): Project identifier environment_id (Optional): Direct environment ID

Behavior: - Requires authenticated session - Parses provided .env file into key-value pairs - Updates specified environment with new secrets - Supports both interactive selection and direct ID specification

Raises: typer.Exit: If authentication fails or update operation errors occur

Usage:

$ tek-secrets env update [OPTIONS]

Options:

  • --env-file FILE: Path to .env file containing updated secrets [required]
  • -e, --env TEXT: Project environment slug
  • -o, --org TEXT: Organization ID
  • -p, --project TEXT: Project ID
  • --env-id TEXT: Environment ID (use when slug is not specified)
  • --help: Show this message and exit.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tek_secrets-0.1.7.dev0.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tek_secrets-0.1.7.dev0-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file tek_secrets-0.1.7.dev0.tar.gz.

File metadata

  • Download URL: tek_secrets-0.1.7.dev0.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.11.0 Darwin/23.1.0

File hashes

Hashes for tek_secrets-0.1.7.dev0.tar.gz
Algorithm Hash digest
SHA256 c483edbd3c03c795a7bdf1fe9e65942fce6e8d105c29bbd4ad26da1d0d0c766e
MD5 7a2d1ab3b72ad0a712ef44e22b6a2262
BLAKE2b-256 5fd9d928de40057c1c14220f963691562ef2c54e5c439882b2c8f7fb4f1282e8

See more details on using hashes here.

File details

Details for the file tek_secrets-0.1.7.dev0-py3-none-any.whl.

File metadata

  • Download URL: tek_secrets-0.1.7.dev0-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.11.0 Darwin/23.1.0

File hashes

Hashes for tek_secrets-0.1.7.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 45cdfc63f92b8d9461ee9d263aac7aa383550ebc7a700e9cf16175de15faa6c0
MD5 98b6488109fea5eed975b0fcb50e92ab
BLAKE2b-256 acba341e5ef4d1d70308911708f45209e1918c4de0c6141f0165947b899e8200

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page