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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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