Skip to main content

KNIX MicroFunctions Command Line Interface

Project description

KNIX MicroFunctions Command Line Interface (CLI)

The package provides the mfn command based on the KNIX MicroFunctions SDK.

The latest version of the CLI can be obtained from KNIX releases. It's also hosted at PyPI and can be installed with the PyPA recommended tool for installing Python packages:

pip3 install mfn_cli

Using the cli

mfn login

The login action is used to obtain a valid user token for all subsequent operations. The token will be updated/stored in ~/.mfn/config.yaml

mfn login [--url <url>] [--user <username>] [--password <password>]
$ mfn login --url https://knix.io --user test@example.com
Logging into https://knix.io as user test@example.com
Please enter the password: ************
$

Commands

$ mfn -h

Usage: mfn [OPTIONS] COMMAND [ARGS]...

Options:
  -q          Quiet, (Log level -q: ERROR, -qq: no output).
  -v          Verbose, reduces log levels (-v: INFO, -vv: DEBUG).
  --version   Show the version and exit.
  -h, --help  Show this message and exit.

Commands:
  version    Show software versions used
  login      Log in to your MicroFunctions platform
  invoke     Invoke a workflow.
  deploy     Deploy a workflow
  undeploy   Undeploy a workflow.
  logs       Fetch logs of a workflow.
  create     Create a resource [workflow|function].
  get        Get a resource [workflow|function].
  edit       Edit a resource [workflow|function].
  delete     Delete a resource [workflow|function].
  workflow   Show workflow specification.
  workflows  List workflows.
  function   Show code of a function.
  functions  List functions.

Project details


Download files

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

Source Distribution

mfn_cli-0.8.9.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

mfn_cli-0.8.9-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file mfn_cli-0.8.9.tar.gz.

File metadata

  • Download URL: mfn_cli-0.8.9.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.9.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for mfn_cli-0.8.9.tar.gz
Algorithm Hash digest
SHA256 1a0470f31efea555368d51fa6db3ee1e6c53a341f72038a8d95d8b96d2034e74
MD5 c859d421921743246acf1ac6488d87a3
BLAKE2b-256 be3653a097be9e4da8479e4cf49b1e3c731d49779516eeebfd2443fdc02999bd

See more details on using hashes here.

File details

Details for the file mfn_cli-0.8.9-py3-none-any.whl.

File metadata

  • Download URL: mfn_cli-0.8.9-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.9.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for mfn_cli-0.8.9-py3-none-any.whl
Algorithm Hash digest
SHA256 1758fbdd1dafa17e7086d12a202431951fc03040e3f8ed23b346d64563ca5688
MD5 36a1af3f01335280b6d7e468fe394be8
BLAKE2b-256 223273acdc254530cf45b9d29cae63bd10f26f3769aafbdab7911a24abb62eb5

See more details on using hashes here.

Supported by

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