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.0.dev0.tar.gz (8.3 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.0.dev0-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tek_secrets-0.1.0.dev0.tar.gz
  • Upload date:
  • Size: 8.3 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.0.dev0.tar.gz
Algorithm Hash digest
SHA256 5d13ba5dd534876798934b0efc1a582135015eb976203bc8da390a759a3b2a4d
MD5 8347e424e63bcd7d88f7bcecc23a7505
BLAKE2b-256 4fee2bd7ccc970ec2fdfe5b426f1d43f6fa5800265599cffd6b198e91807da8b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tek_secrets-0.1.0.dev0-py3-none-any.whl
  • Upload date:
  • Size: 11.6 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.0.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc4147a9c236e0d5c497bfbcd3e9b79c044d411075d5f211372f0bc7e4470fb7
MD5 4c1ac8f6c6dae268f49b0e822da01ce2
BLAKE2b-256 20c69edde474847e885259a510467cd64d4d3cffa21342d7ccf51ad695ad8c3d

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