edjx function deploy

Deploys a function.


edjx function deploy
[-p, --path <string>]


Option Required Type Description

-p, --path <directory-path>



Indicates the directory path for the function if saved in your default directory ($HOME/<username>/<project-name>).

Global Flags

Option Required Type Description

-h, --help


Displays inline help for the command.

--config <file-location>



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

Deploy a function

  1. Change to the function directory.

    cd <function-directory-path>
  2. Deploy the function.

    edjx function deploy

    Alternatively, deploy the function using -p option to specify the .wasm file.

    edjx function deploy -p ./<app>.wasm
  3. Read the function details to confirm deployment.

    edjx function read <function-name>

    Sample Output

    root@edjx:~ # edjx function read project01
    Name                project01
    Function ID         b5cbcc82-70af-4198-b271-ce1acbbb6720
    Execution URL       https://601d8002-6e95-4c6e-a704-927999912345.fn.domainname/project01
    Trigger             HTTP
    Language            Rust
    Runtime             WASM
    Timeout             5s
    Memory Allocated    128.0 MB
    Compute             0 GB-SEC
    Network             0 B
    Requests            0
    Created By          username
    Created At          2021-11-05 13:13:57.952 -0700 PDT
    Last Updated        2021-11-05 13:14:04.326 -0700 PDT
  4. Copy the Execution URL.

  5. Paste the URL in a web browser to verify that the function was deployed to the EDJX Network.