Git Product home page Git Product logo

cli's Introduction

OpenFunctionCtl

cli is the command-line interface for OpenFunction.

The cli repo is used to track issues for the OpenFunction. This tool allows you to focus on the core functionality of the OpenFunction, while also presents the relationship between the OpenFunction and its dependent components in a more abstract and friendly way.

Main commands

The main commands supported by the CLI are:

  • init: provides management for openfunction’s framework.
  • install: installs OpenFunction and its dependencies.
  • uninstall: uninstalls OpenFunction and its dependencies.
  • create: creates a function from a file or stdin.
  • apply: applies a function from a file or stdin.
  • get: prints a table of the most important information about the specified function.
    • get builder: prints important information about the builder.
    • get serving: prints important information about the serving.
  • delete: deletes the specified function.

Getting started

Visit ofn releases page to download the ofn cli to deploy to your cluster.

Use ofn to deploy OpenFunction

Make sure you put the artifacts from the above step under the appropriate path in PATH and rename it ofn.

Run ofn install --all to implement a simple deployment. By default, this command will install the latest stable version of OpenFunction and skips the installation of components that already exist. To overwrite the existing components, use the --upgrade command.

For more information, refer to the ofn install document.

# ofn install --all
Start installing OpenFunction and its dependencies.
The following components will be installed:
+------------------+---------+
| COMPONENT        | VERSION |
+------------------+---------+
| Knative Serving  | 1.0.1   |
| Tekton Pipelines | 0.30.0  |
| OpenFunction     | 0.5.0   |
| Kourier          | 1.0.1   |
| DefaultDomain    | 1.0.1   |
| Keda             | 2.4.0   |
| CertManager      | 1.5.4   |
| Dapr             | 1.5.1   |
| Shipwright       | 0.6.1   |
| IngressNginx     | 1.1.0   |
+------------------+---------+
 ✓ Dapr - Completed!
 ✓ Keda - Completed!
 ✓ Knative Serving - Completed!
 ✓ Shipwright - Completed!
 ✓ Cert Manager - Completed!
 ✓ Ingress - Completed!
 ✓ OpenFunction - Completed!
🚀 Completed in 1m40.055438303s.

 ██████╗ ██████╗ ███████╗███╗   ██╗
██╔═══██╗██╔══██╗██╔════╝████╗  ██║
██║   ██║██████╔╝█████╗  ██╔██╗ ██║
██║   ██║██╔═══╝ ██╔══╝  ██║╚██╗██║
╚██████╔╝██║     ███████╗██║ ╚████║
 ╚═════╝ ╚═╝     ╚══════╝╚═╝  ╚═══╝

███████╗██╗   ██╗███╗   ██╗ ██████╗████████╗██╗ ██████╗ ███╗   ██╗
██╔════╝██║   ██║████╗  ██║██╔════╝╚══██╔══╝██║██╔═══██╗████╗  ██║
█████╗  ██║   ██║██╔██╗ ██║██║        ██║   ██║██║   ██║██╔██╗ ██║
██╔══╝  ██║   ██║██║╚██╗██║██║        ██║   ██║██║   ██║██║╚██╗██║
██║     ╚██████╔╝██║ ╚████║╚██████╗   ██║   ██║╚██████╔╝██║ ╚████║
╚═╝      ╚═════╝ ╚═╝  ╚═══╝ ╚═════╝   ╚═╝   ╚═╝ ╚═════╝ ╚═╝  ╚═══╝

Use ofn to uninstall OpenFunction

Make sure you put the artifacts from the above step under the appropriate path in PATH and rename it ofn.

Run ofn uninstall --all to uninstall OpenFunction and its dependencies (or just uninstall OpenFunction without arguments).

For more information, refer to the ofn uninstall document.

~# ofn uninstall --all -y
Start uninstalling OpenFunction and its dependencies.
The following components already exist:
+------------------+---------+
| COMPONENT        | VERSION |
+------------------+---------+
| OpenFunction     | 0.5.0   |
| Knative Serving  | 1.0.1   |
| Kourier          | 1.0.1   |
| DefaultDomain    | 1.0.1   |
| IngressNginx     | 1.1.0   |
| Keda             | 2.4.0   |
| Dapr             | 1.5.1   |
| Shipwright       | 0.6.1   |
| Tekton Pipelines | 0.30.0  |
| CertManager      | 1.5.4   |
+------------------+---------+
 ✓ Dapr - Completed!
 ✓ Keda - Completed!
 ✓ Knative Serving - Completed!
 ✓ Shipwright - Completed!
 ✓ Tekton Pipelines - Completed!
 ✓ Cert Manager - Completed!
 ✓ Ingress - Completed!
 ✓ OpenFunction - Completed!
🚀 Completed in 1m17.729501739s.

cli's People

Contributors

24sama avatar arugal avatar benjaminhuo avatar felixnoo avatar tpiperatgod avatar wenchajun avatar wentevill avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.