Skip to main content

Releases Issues

Introduction

The F5 CLI provides a command-line interface (CLI) to various F5 products and services. It focuses primarily on facilitating consuming our most popular APIs and services, currently including BIG-IP (via Automation Tool Chain) and F5 Cloud Services.

Similar to other popular cloud shells (for example, AWS CLI, Azure CLI, and Google gcloud), it is built on a python client library. For those looking to write custom automation scripts or workloads, one may choose to leverage the same python library it is built on (https://github.com/f5devcentral/f5-sdk-python).

The F5 CLI is currently in early development and we want to hear from you! To provide feedback on CLI or this documentation, you can file a GitHub Issue.

Benefits:

  • Quickly access and consume F5’s APIs and Services with familiar remote CLI UX
  • Configurable settings
  • Include common actions in Continuous Deployment (CD) pipelines
  • Prototyping
    • Test calls that may be used in more complex custom integrations using the underlying SDK
    • Supports discovery activities/querying of command-line results (for example, “list accounts” to find the desired account which will be used as an input to final automation)
  • Support quick one-off automation activities (for example, leveraging a bash loop to create/delete large lists of objects)

Table of Contents

Quick Start

Install F5 CLI with pip

pip install f5-cli
f5 --help

Run F5 CLI in Docker container

Example: Run the F5 CLI with docker container interactively

docker run -it -v "$HOME/.f5_cli:/root/.f5_cli" -v "$(pwd):/f5-cli" f5devcentral/f5-cli:latest /bin/bash

Example: Run the F5 CLI with docker container using an alias

alias f5='docker run -it -v "$HOME/.f5_cli:/root/.f5_cli" -v "$(pwd):/f5-cli" f5devcentral/f5-cli:latest f5'

Example: Run the F5 CLI with docker container from path

Another shortcut to launch f5-cli is to assign a file containing the following content in your system's PATH (ex. cat /usr/local/bin/f5). This example also set environment variable to set the log level and disable ssl warnings of the application.

#!/usr/bin bash
docker run -it --rm -e "F5_SDK_LOG_LEVEL=INFO" -e "F5_DISABLE_SSL_WARNINGS=true" -v "$HOME/.f5_cli:/root/.f5_cli" -v "$(pwd):/f5-cli" f5devcentral/f5-cli:latest f5 $@
  • Notes:
    • To post a declaration, make sure that the current directory is at where the declarative files are located. This will let the docker container to mount the local directory onto the container "$(pwd):/f5-cli" and process the declarative files with f5-cli container.
    • Ensure that the config directory .f5_cli is mounted to the container so the container can authenticate and communicate properly with a target device.

Build F5 CLI Docker container locally

docker build -t f5-cli:latest .

User Documentation

See the documentation for details on installation, usage and much more.

Source Repository

See the source repository here.

Filing Issues and Getting Help

If you come across a bug or other issue when using the CLI, use GitHub Issues to submit an issue for our team. You can also see the current known issues on that page, which are tagged with a Known Issue label.

F5 CLI is community-supported. For more information, see the Support page.

Copyright 2014-2020 F5 Networks Inc.

F5 Networks Contributor License Agreement

Before you start contributing to any project sponsored by F5 Networks, Inc. (F5) on GitHub, you will need to sign a Contributor License Agreement (CLA).

If you are signing as an individual, we recommend that you talk to your employer (if applicable) before signing the CLA since some employment agreements may have restrictions on your contributions to other projects. Otherwise by submitting a CLA you represent that you are legally entitled to grant the licenses recited therein.

If your employer has rights to intellectual property that you create, such as your contributions, you represent that you have received permission to make contributions on behalf of that employer, that your employer has waived such rights for your contributions, or that your employer has executed a separate CLA with F5.

If you are signing on behalf of a company, you represent that you are legally entitled to grant the license recited therein. You represent further that each employee of the entity that submits contributions is authorized to submit such contributions on behalf of the entity pursuant to the CLA.

Metadata

Release files for f5-cli 0.9.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for f5-cli 0.9.2
File Size Uploaded Provenance Actions
f5-cli-0.9.2.tar.gz 16.9 kB Without provenance Details for f5-cli-0.9.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for f5-cli 0.9.2
File Interpreter ABI Platform Actions
f5_cli-0.9.2-py3-none-any.whl Python 3 none any Details for f5_cli-0.9.2-py3-none-any.whl

Total release size: 43.8 kB

Release files / f5-cli-0.9.2.tar.gz

Download URL f5-cli-0.9.2.tar.gz
Size 16.9 kB
Tags Source
SHA-256 checksum
How to use checksums
806c8e1894230770d92da10860ff88309889d03c66d1635b769d3860b284c996
BLAKE2b-256 checksum
How to use checksums
9d8d5decf8ff591da7234cfbab673060cb9cf0bfb1db994435f2bf4828221717
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

Release files / f5_cli-0.9.2-py3-none-any.whl

Download URL f5_cli-0.9.2-py3-none-any.whl
Size 26.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
179a2f06401ae6f940de958d60f77879e60118cf7e383175c8aee1bfc6aa5cde
BLAKE2b-256 checksum
How to use checksums
0a558c76e8d19a83d0c71a326a59ab7253d59555bddfec288be106b14f25629b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

Security for f5-cli 0.9.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.9.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page