edjx function deploy
Deploys a function.
Options
Option | Required | Type | Description |
---|---|---|---|
|
No |
UUID |
Indicates the directory path for the function if saved in your default directory ($HOME/<username>/<project-name>). |
Global Flags
Option | Required | Type | Description |
---|---|---|---|
|
No |
Displays inline help for the command. |
|
|
No |
string |
Location of client configuration file (default file path is |
Deploy a function
-
Change to the function directory.
cd <function-directory-path>
-
Deploy the function.
edjx function deploy
Alternatively, deploy the function using
-p
option to specify the.wasm
file.edjx function deploy -p ./<app>.wasm
-
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
-
Copy the Execution URL.
-
Paste the URL in a web browser to verify that the function was deployed to the EDJX Network.