Skip to main content

alfa-cli

This package provides a command line tool for ALFA.

Installation

You can directly install alfa-cli using pip. This will install the alfa-cli package as well as all dependencies.

$ pip install -U alfa-cli

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

$ pip install --upgrade alfa-cli

Usage

Once alfa-cli is installed, you can run it with the following template.

$ alfa [options] <command> <subcommand> [parameters]

For more information regarding the usage, you can refer to the provided help information.

$ alfa --help
$ alfa <command> --help
$ alfa <command> <subcommand> --help

Command Completion

The alfa-cli package includes a command completion feature, but is not automatically installed. To enable tab completion you can follow the instructions below:

For bash, run the following command, or append it to ~/.bashrc

$ . alfa-complete.sh

For zsh, run the following command, or append it to ~/.zshrc

$ . alfa-complete.zsh

Development

To install requirements locally:

1. Activate local venv

$ virtualenv venv
$ source venv/bin/activate

2. Install requirements from setup.py

$ pip install -e ".[dev]"

To develop alfa-cli alongside alfa-sdk, you can opt to install a local copy of the alfa-sdk instead.

$ pip install -e /path/to/alfa-sdk-py

Running it locally

You can run the cli directly as a python module.

$ python alfa_cli [options] <command> <subcommand> [parameters]

Alternatively, you can install your local copy of alfa-cli in develop mode, and use it normally.

$ python setup.py develop
$ alfa [options] <command> <subcommand> [parameters]

Changelog

  • 0.1.48 (2021-01-11)
    • Adjust --spec option to not mutate source spec file
  • 0.1.47 (2022-01-03)
    • Update descriptions integration commands
    • Define integration id in specification file when initialising a new integration
  • 0.1.46 (2021-10-15)
    • Read team-id from alfa.yml when deploying an integration
  • 0.1.45 (2021-09-28)
    • Fix name of the platformRegion key, that Local Runner uses accessing the context
  • 0.1.44 (2021-09-20)
    • Enable deployment of a release into any allowed team
  • 0.1.43 (2021-08-13)
    • Include alfaID and platformRegion in context when invoking an algorithm or integration locally
  • 0.1.42 (2021-07-19)
    • Fix for local invocation on a windows device
  • 0.1.41 (2021-07-01)
    • Fix for excluding files and folders when deploying an integration
  • 0.1.40 (2021-06-04)
    • Fix issue with using tempfile in Windows
  • 0.1.39 (2021-05-05)
    • Handling of large payloads when invoking node algorithms locally
  • 0.1.37 (2021-04-15)
    • Append context inside problem body when running invoke-local
  • 0.1.36 (2021-04-07)
    • Call algorithm pre & post processing functions when running invoke-local

Metadata

Release files for alfa-cli 0.1.48

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

Source distribution (sdist)

Source distribution for alfa-cli 0.1.48
File Size Uploaded
alfa-cli-0.1.48.tar.gz 25.3 kB Details

Release files / alfa-cli-0.1.48.tar.gz

Download URL alfa-cli-0.1.48.tar.gz
Size 25.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9ea9dcb2892974bc16c2b424eda25ce384c77e4fecf2955e73623ddc781708c5
BLAKE2b-256 checksum
How to use checksums
172141cb1e350ef4859393a54a02075fcfb383908d7d968781a74f6049fff6ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.8.2 requests/2.27.1 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.9

Release history Release notifications | RSS feed

This release

0.1.48 This release

1 release file

0.1.47

1 release file

0.1.46

1 release file

0.1.45

1 release file

0.1.44

1 release file

0.1.43

1 release file

0.1.42

1 release file

0.1.41

1 release file

0.1.40

1 release file

0.1.39

1 release file

0.1.38

1 release file

0.1.37

1 release file

0.1.36

1 release file

0.1.35

1 release file

0.1.34

1 release file

0.1.33

1 release file

0.1.32

1 release file

0.1.31

1 release file

0.1.30

1 release file

0.1.29

1 release file

0.1.28

1 release file

0.1.27

1 release file

0.1.26

1 release file

0.1.25

1 release file

0.1.24

1 release file

0.1.23

1 release file

0.1.22

1 release file

0.1.21

1 release file

0.1.20

1 release file

0.1.19

1 release file

0.1.18

1 release file

0.1.17

1 release file

0.1.16

1 release file

0.1.15

1 release file

0.1.14

1 release file

0.1.13

1 release file

0.1.12

1 release file

0.1.11

1 release file

0.1.10

1 release file

0.1.9

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

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