Skip to Content

CLI Reference

Creddy command-line interface.

Global Flags

FlagDescription
--configPath to config file
--serverServer URL
-v, --verboseVerbose output

Client Commands

creddy init

Initialize the client and enroll with a server.

creddy init [flags]
FlagDefaultDescription
--namehostnameClient name
--serverServer URL (required)
--admin-tokenBootstrap admin token (first admin only)
--timeout5mEnrollment timeout

Examples

# Standard enrollment (requires admin approval) creddy init --name my-laptop --server https://creddy.example.com # Bootstrap first admin with token creddy init --name admin-laptop --server https://creddy.example.com \ --admin-token ctk_XXXXX

creddy get

Request a credential from a backend.

creddy get <backend> [flags]
FlagDefaultDescription
--ttlBackend defaultTime to live
--scopeScopes (repeatable)
-o, --outputtextOutput format (text, json, env)

Examples

# Basic usage creddy get github # With TTL and scopes creddy get github --ttl 30m --scope repo:read --scope issues:write # Output as environment variables creddy get aws --output env export $(creddy get aws -o env)

creddy backends

List available backends.

creddy backends [flags]
FlagDescription
-o, --outputOutput format (text, json)

creddy rotate-key

Rotate the client’s keypair.

creddy rotate-key [flags]
FlagDefaultDescription
--grace-period24hHow long to accept old key

creddy status

Show client status and server connection.

creddy status

Example Output

Client: my-laptop (cli_xyz789) Server: https://creddy.example.com Status: connected Role: operator Fingerprint: SHA256:xK3E8f... Last sync: 2024-01-15 16:30:00

Admin Commands

creddy admin enrollments

List pending enrollment requests.

creddy admin enrollments [flags]
FlagDescription
--statusFilter by status (pending, approved, denied)
-o, --outputOutput format (text, json)

Example Output

ID NAME USER HOST IP EXPIRES enr_abc123 my-laptop marc marcbook.local 192.168.1.50 4:32 enr_def456 ci-runner root ci-node-01 10.0.0.50 2:15

creddy admin approve

Approve an enrollment request.

creddy admin approve <enrollment_id> [flags]
FlagDefaultDescription
--roleoperatorClient role (operator, admin)
--noteAdmin note

Example

creddy admin approve enr_abc123 --role admin --note "Marc's laptop"

creddy admin deny

Deny an enrollment request.

creddy admin deny <enrollment_id> [flags]
FlagDescription
--reasonReason for denial

creddy admin clients

List registered clients.

creddy admin clients [flags]
FlagDescription
--statusFilter by status (active, revoked)
-o, --outputOutput format (text, json)

Example Output

ID NAME ROLE LAST SEEN STATUS cli_xyz789 my-laptop admin 2024-01-15 16:30 active cli_abc123 ci-runner operator 2024-01-15 14:00 active

creddy admin revoke

Revoke a client’s access.

creddy admin revoke <client_id> [flags]
FlagDescription
--reasonReason for revocation

Server Commands

creddy server

Start the Creddy server.

creddy server [flags]
FlagDefaultDescription
--port8080Server port
--host0.0.0.0Host to bind
--data-dir~/.creddyData directory

creddy backend add

Add a backend to the server.

creddy backend add <name> --type <type> [flags]
FlagDescription
--typeBackend type (github, aws, generic)
--configPath to config file

Example

creddy backend add github --type github \ --app-id 12345 \ --private-key ./github-app.pem

creddy keys

Manage server signing keys.

creddy keys <subcommand>

Subcommands

  • creddy keys list — List all signing keys
  • creddy keys rotate — Generate a new signing key
  • creddy keys revoke <key-id> — Revoke a signing key
  • creddy keys export <key-id> — Export public key

creddy audit

Query the audit log.

creddy audit [flags]
FlagDefaultDescription
--backendFilter by backend
--clientFilter by client
--since24hStart time
--untilEnd time
--limit100Max results
-o, --outputtextOutput format

Environment Variables

VariableDescription
CREDDY_SERVERServer URL
CREDDY_CONFIGConfig file path
CREDDY_DATA_DIRData directory

Exit Codes

CodeDescription
0Success
1General error
2Invalid arguments
3Connection error
4Authentication error
5Enrollment denied/expired

CLI Reference — Additions

These commands should be added to the existing CLI reference.


Agent Commands

creddy agent create

Create a new agent identity (server-side).

creddy agent create <name> [flags]
FlagDescription
--canScopes this agent can request (repeatable)

Examples

# Create CI agent with read-only access creddy agent create ci-runner --can github:myorg/*:read # Create agent with multiple scopes creddy agent create dev-laptop --can github:* --can anthropic:*

creddy agent ls

List registered agents.

creddy agent ls

creddy request

Request additional permissions for the current agent.

creddy request [flags]
FlagDescription
--canPermission to request (repeatable)

Examples

creddy request --can github:myorg/new-repo creddy request --can github:myorg/repo:write

creddy unenroll

Remove an enrolled agent (admin command).

creddy unenroll <client_id>

Plugin Commands

creddy plugin ls

List installed and available plugins.

creddy plugin ls [flags]
FlagDescription
--installedShow only installed plugins

creddy plugin install

Install plugins from the registry, OCI registry, or URL.

creddy plugin install <plugin[@version]> [plugin...] [flags]

Examples

creddy plugin install github creddy plugin install github@0.2.0 creddy plugin install github anthropic doppler creddy plugin install https://example.com/plugin.tar.gz creddy plugin install ttl.sh/creddy-github:1h

creddy plugin upgrade

Upgrade installed plugins.

creddy plugin upgrade [plugin...] [flags]
FlagDescription
--allUpgrade all installed plugins

Examples

creddy plugin upgrade github creddy plugin upgrade --all

creddy plugin outdated

Show plugins with available updates.

creddy plugin outdated

creddy plugin info

Show detailed plugin information.

creddy plugin info <plugin>

creddy plugin rm

Remove an installed plugin.

creddy plugin rm <plugin>

Upgrade Commands

creddy upgrade

Upgrade Creddy to the latest version.

creddy upgrade

creddy version

Print version and check for updates.

creddy version [flags]
FlagDescription
--jsonMachine-readable output

creddy which

Show paths and diagnostics for the Creddy installation.

creddy which

Shows binary location, config paths, plugin directories, and systemd service status.


Service Commands

creddy install

Install Creddy as a systemd service.

creddy install [flags]
FlagDefaultDescription
--listen0.0.0.0:8400Address to listen on
--data-dir/var/lib/creddyData directory
--agent-inactivity-days0Auto-unenroll inactive agents (0 = disabled)

creddy uninstall

Remove the Creddy systemd service.

creddy uninstall

Environment Variables

VariableDescription
CREDDY_SERVERServer URL
CREDDY_CONFIGConfig file path
CREDDY_DATA_DIRData directory

Exit Codes

CodeDescription
0Success
1General error
2Invalid arguments
3Connection error
4Authentication error
5Enrollment denied/expired
Last updated on

Apache 2.0 2026 © Creddy