🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

code.cloudfoundry.org/credhub-cli

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

code.cloudfoundry.org/credhub-cli

v0.0.0-20250505130841-11f3a43db498
Version published
Created

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.

FAQs

Package last updated on 05 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts