edjx function init

Creates a directory for a new function.

Usage

edjx function init <dir-name>

Options

Option Required Type Description

<dir-name>

Yes

string

Name of the directory for the function code to reside.

Global Flags

Option Required Type Description

-h, --help

No

Displays inline help for the command.

--config <file-location>

No

string

Location of client configuration file (default file path is $HOME/.edjx/.edjx.yaml).

Create a directory for a Rust function

  1. Set the organization to be associated with all EDJX operations.

    edjx config organization -i

    If no organizations display, create one using EdjConsole.

  2. Create an application.

    edjx application create -n <string>
  3. Set the application to be associated with any new functions.

    edjx config application -i
  4. Create the directory named project-rust with a function called rust-function:

    edjx function init project-rust
    Function Name: rust-function
    ✔ WASM
    ✔ Rust
    ✔ HTTP
    ✔ 30
    ✔ 64
    Setting up project with starter files......
    Project successfully initialized in project-rust directory

Create a directory for a C++ function

  1. Set the organization to be associated with all EDJX operations.

    edjx config organization -i

    If no organizations display, create one using EdjConsole.

  2. Create an application.

    edjx application create -n <string>
  3. Set the application to be associated with any new functions.

    edjx config application -i
  4. Create the directory named project-cpp with a function called cpp-function:

    edjx function init project-cpp
    Function Name: cpp-function
    ✔ WASM
    ✔ C++
    ✔ HTTP
    ✔ 30
    ✔ 64
    Setting up project with starter files......
    Project successfully initialized in project-cpp directory