Skip to content

clerkcli is a fast, flexible command-line tool for querying and managing users in Clerk organizations

License

Notifications You must be signed in to change notification settings

nhudson/clerkcli

Repository files navigation

clerkcli

clerkcli is a fast, flexible command-line tool for querying and managing users in Clerk organizations.

Features

  • List users for one or more Clerk organizations
  • Output as a table or just email addresses
  • Filter and sort results
  • Built in Rust for speed and reliability

Authentication

The CLI requires a Clerk secret key to authenticate requests. You can find your secret key under "API Keys" in the Clerk Dashboard.

You can provide the secret key in two ways:

  • Set the CLERK_SECRET_KEY environment variable:
    export CLERK_SECRET_KEY=sk_test_...
    clerkcli users list --org-id org_abc
  • Or pass it directly as a CLI argument:
    clerkcli --secret-key sk_test_... users list --org-id org_abc

Installation

You can install the latest release from crates.io using Cargo:

cargo install clerkcli

Usage

clerkcli users list --org-id org_abc,org_xyz --order-by -created_at
clerkcli users list --org-id org_abc --emails-only

Container Usage

docker run -e CLERK_SECRET_KEY=$CLERK_SECRET_KEY--rm ghcr.io/nhudson/clerkcli:latest users list --org-id org_abc --emails-only

About

clerkcli is a fast, flexible command-line tool for querying and managing users in Clerk organizations

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •