Skip to content
CF Login tool to switch between CF environments with a single command.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
cmd
features
.gitignore
.travis.yml
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
Makefile
README.md
aklogin.go
aklogin_test.go
glide.lock
glide.yaml
repo-index.yml

README.md

CF Login tool Build Status Go Report Card codecov

A tool that will allow switching between CF environments with a single command.

Install

$ cf install-plugin -r CF-Community "cf-aklogin"

Download the latest plugin and run:

$ cf install-plugin ~/Downloads/cf-aklogin.darwin

Note: If you get persmission denied, run chmod +x ~/Downloads/cf-aklogin.darwin.

Usage

Login

Create ~/.cflogin.yml:

include: //optional
- ~/bar.yml
foo:
  target: api.run.pivotal.io
  username: <username>
  password: <password>
  org: <org>
  space: <space>

Note: leave password/org/space blank for os.Stdin input.

And then run:

$ cf aklogin foo 

Or with your own foo.yml:

include: //optional
- ~/bar.yml
foo:
  target: api.run.pivotal.io
  username: <username>
  password: <password> // optional
  org: <org> // optional
  space: <space> // optional

$ cf aklogin -f foo.yml bar

List

$ cf aklogin -h
NAME:
   aklogin - CF login via profiles

USAGE:
   cf aklogin [options] <profile>

OPTIONS:
   --filename       YML config file path
   --list           List available profiles
   --version        Print version

$ cf aklogin --list
Available profiles:
0. ak
1. bar    
2. foo
Select profile: _

Build and install

$ make && make install

Tests

$ make test

Release

$ GITHUB_TOKEN=<your-token-here> make release
You can’t perform that action at this time.