Skip to main content

(Unofficial) Apigee Management API command-line interface with multi-factor authentication (MFA) and single sign-on (SSO)/SAML support

Project description

License

Welcome to the (Unofficial) Apigee Management API command-line interface!

It is designed to provide a simple command-line experience with CI/CD and SSO features in mind.

More details can be found in The Apigee Management API command-line interface documentation.

This is not an officially supported Google product, and is not affiliated with Apigee or Google in any way.

Please note that this CLI is still highly experimental and may change significantly based on client needs.

Installation

The easiest way to install apigee-cli is to use pip in a virtualenv:

$ pip install apigeecli

or, if you are not installing in a virtualenv, to install globally:

$ sudo pip install apigeecli

or for your user:

$ pip install --user apigeecli

If you have the apigee-cli installed and want to upgrade to the latest version you can run:

$ pip install --upgrade apigeecli

Getting Started

Before using apigee-cli, you need to tell it about your Apigee Edge credentials. You can do this in three ways:

  • Environment variables

  • Config file

  • Command-line arguments

The steps below show how to use command-line arguments to configure your Apigee Edge credentials.

Basic authentication

$ apigee configure -P default -u MY_EMAIL -p MY_PASS -o MY_ORG -mfa '' -z '' --no-token --prefix ''

Multi-factor authentication (MFA)

$ apigee configure -P default -u MY_EMAIL -p MY_PASS -o MY_ORG -mfa MY_KEY -z '' --no-token --prefix ''

SSO authentication

$ apigee configure -P default -u MY_EMAIL -p none -o MY_ORG -mfa '' -z MY_ZONENAME --no-token --prefix ''

If you are not currently signed in by your identity provider, you will be prompted to sign in:

$ apigee apis list
SSO authorization page has automatically been opened in your default browser.
Follow the instructions in the browser to complete this authorization request.

If your browser did not automatically open, go to the following URL and sign in:

https://{zoneName}.login.apigee.com/passcode

then copy the Temporary Authentication Code.

Please enter the Temporary Authentication Code:

zoneName will be the Identity zone name you previously configured.

Refer to the official Apigee documentation to learn more about how to Access the Edge API with SAML.

Testing your credentials

Run the following command to get a list of API proxies in your default Apigee organization:

$ apigee apis list
["helloworld", "oauth"]

Why does this exist?

Apigee CLI is a user-friendly command-line interface to the Apigee Edge Management API providing automation capabilities with multi-factor authentication (MFA) and single sign-on (SSO)/SAML support. It is intended for general administrative use from your shell, as a package for developers, and to support automation for common development tasks, such as test automation or Continuous Integration/Continuous Deployment (CI/CD).

Third-party plugins

The Apigee CLI also supports the ability to load third-party plugins (to be documented) as additional commands which enables us (and third-party developers) to distribute their own commands for very specific use cases, including those do not require any interaction with the Apigee Management API, while being able to leverage the command-line interface without any knowledge of the CLI internals.

When to use this over the official tool

Apigee Corporation maintains their own fully-featured CLI for the Apigee Management API that can be used as an SDK to orchestrate tasks and may be more than suitable for your needs.

Our Apigee CLI provides a simpler command-line experience with CI/CD and SSO features in mind.

We built and use the Apigee CLI to implement and distribute features that allow our clients to manage CI/CD, perform self-service operations and promote our DevOps workflows in ways that are not supported by official tools.

Getting Help

Disclaimer

This is not an officially supported Google product.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apigeecli-0.49.3.tar.gz (63.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

apigeecli-0.49.3-py3-none-any.whl (86.0 kB view details)

Uploaded Python 3

File details

Details for the file apigeecli-0.49.3.tar.gz.

File metadata

  • Download URL: apigeecli-0.49.3.tar.gz
  • Upload date:
  • Size: 63.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

File hashes

Hashes for apigeecli-0.49.3.tar.gz
Algorithm Hash digest
SHA256 1de51d69f64473a3ac47ba6aee636de5fc062867b9e86738cbbb81a34dbe7c05
MD5 1427ad06e4aacfc0ba1c81d6f786d03a
BLAKE2b-256 b41ff87a1ef6f32debb80b3f4f4b2f6df10bbe8501fe7641c71dfba5ea60b6e7

See more details on using hashes here.

File details

Details for the file apigeecli-0.49.3-py3-none-any.whl.

File metadata

  • Download URL: apigeecli-0.49.3-py3-none-any.whl
  • Upload date:
  • Size: 86.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

File hashes

Hashes for apigeecli-0.49.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2c1f1c82aaf0e86305b194160159bc64cfe92417025101d7e01e97d7d2f154ab
MD5 1854703c812b3f8479409d330c9eeb99
BLAKE2b-256 7d12f696c0100f305bfdaf8e0ef488568db9eda11b6869cdd3791f9de0af4fbc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page