MCPcopy Index your code
hub / github.com/cloudfoundry/credhub-cli

github.com/cloudfoundry/credhub-cli @2.9.58

Chat with this repo
repository ↗ · DeepWiki ↗ · release 2.9.58 ↗ · + Follow
409 symbols 1,725 edges 130 files 80 documented · 20% 1 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

CredHub

slack.cloudfoundry.org GoDoc

CredHub manages credentials like passwords, certificates, certificate authorities, ssh keys, rsa keys and arbitrary values (strings and JSON blobs). CredHub provides a CLI and API to get, set, generate and securely store such credentials.

See additional repos for more info:

Installing the CLI

Operating system compatibility

The credhub CLI is tested on Linux and Mac OS, and is supported on these systems. It is not tested or supported on Windows, though it has been known to work at some point.

MacOS X with Homebrew

  brew install cloudfoundry/tap/credhub-cli

Linux and Windows

Download and install the desired release from the release page.

Building the CLI:

make (first time only to get dependencies, will also run specs)

make build

Go Client

This repository contains a Go client library that can be used independently of the CredHub CLI. Documentation for this library can be found here.

Usage:

CredHub CLI can be used to manage credentials stored in a CredHub server. You must first target the CredHub server using the api command. Once targeted, you must login with either user or client credentials. Future commands will be sent to the targeted server. For additional information on how to perform CLI operations, you may review the examples shown here or review the help menus with the commands credhub --help and credhub <command> --help.

Debug Mode:

To see the API calls made by each CLI command, export CREDHUB_DEBUG=true.

Extension points exported contracts — how you extend this code

Strategy (Interface)
Strategy provides http.Client-like interface to send authenticated requests to the server Modifies the request and clie [2 …
credhub/auth/strategy.go
SetOption (FuncType)
Option can be provided to New() to specify additional parameters for connecting to the CredHub server
credhub/set.go
Option (FuncType)
Option can be provided to New() to specify additional parameters for connecting to the CredHub server
credhub/options.go
NeedsClient (Interface)
(no doc) [1 implementers]
main.go
ProxyDialer (Interface)
(no doc) [1 implementers]
credhub/socksify.go
RegenerateOption (FuncType)
(no doc)
credhub/regenerate.go
GenerateOption (FuncType)
(no doc)
credhub/generate.go
Config (Interface)
Config provides the CredHub configuration necessary to build an auth Strategy The credhub.CredHub struct conforms to th [2 …
credhub/auth/builders.go

Core symbols most depended-on inside this repo

New
called by 154
credhub/new.go
Auth
called by 121
credhub/options.go
ReadConfig
called by 76
config/config.go
ServerVersion
called by 60
credhub/options.go
String
called by 51
models/credential_bulk_export.go
Get
called by 39
commands/interpolate.go
WriteConfig
called by 38
config/config.go
ReadFile
called by 31
models/credential_bulk_import.go

Shape

Function 155
Method 150
Struct 86
Interface 7
FuncType 6
TypeAlias 5

Languages

Go100%

Modules by API surface

errors/errors.go28 symbols
credhub/credentials/types.go19 symbols
credhub/get.go16 symbols
credhub/auth/oauth.go16 symbols
commands/commands_suite_test.go15 symbols
credhub/set.go13 symbols
credhub/auth/uaa/client.go13 symbols
credhub/generate.go10 symbols
credhub/permissions.go9 symbols
models/credential_bulk_import.go8 symbols
credhub/options.go8 symbols
config/config.go8 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add credhub-cli \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact