Skip to main content

apigee-cli is an unofficial command-line interface tool designed to simplify the use of the Apigee Edge Management API

Project description

⚠️ Warning: This project is no longer actively maintained and was created specifically for previous Darumatic clients.

apigee-cli is a command-line interface tool designed to simplify the use of the Apigee Edge Management API. It provides a user-friendly experience with features such as SSO support.

While Google or Apigee does not officially support the tool, it can be used for general administrative tasks, as a developer package, and to support automation for common development tasks such as CI/CD.

With the apigee-cli, you can manage your Apigee Edge credentials using environment variables, config files, or command-line arguments.

The tool is highly experimental and is not affiliated with Apigee or Google.

For more information on getting started with the apigee-cli or for troubleshooting help, refer to the documentation and links provided.

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?

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).

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.

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 which are difficult to perform using 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.53.1.tar.gz (68.5 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.53.1-py3-none-any.whl (91.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: apigeecli-0.53.1.tar.gz
  • Upload date:
  • Size: 68.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for apigeecli-0.53.1.tar.gz
Algorithm Hash digest
SHA256 d6c160e333cfbcf246c07fcaab3fa8ba4aa12f42bdae5e144226dab35c16b9f9
MD5 c94ea3179c2de610cefd385bd81680ac
BLAKE2b-256 3b49207a0406ce21ef491c10f384b7394913e2fa74a1c7f6cb369b540afe7b11

See more details on using hashes here.

File details

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

File metadata

  • Download URL: apigeecli-0.53.1-py3-none-any.whl
  • Upload date:
  • Size: 91.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for apigeecli-0.53.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bbd1e72fee4a653ca5497040e0763efb00dab17ca3ec867665459cf3fe7f14fa
MD5 4d7a4f968f20d4bffe7de6db7e00e46c
BLAKE2b-256 d58a4392d5355980232806dd4d402a786f6fe3220eee512957288b17bc09a7a8

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