Giter Site home page Giter Site logo

crossroad0201 / cf-aklogin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from armakuni/cf-aklogin

0.0 1.0 0.0 37 KB

CF Login tool to switch between CF environments with a single command.

License: MIT License

Makefile 1.99% Go 51.76% Gherkin 36.41% Shell 9.83%

cf-aklogin's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.