doctl Verified current stable Not installed? Cloud Infrastructure

Doctl / Obtain Functions Project Metadata

Obtain Functions Project Metadata

Doctl command syntax to obtain functions project metadata. Copyable examples, output expectations, and common mistakes.

$
Terminal
doctl sls get-metadata

Terminal Output

Expected runtime feedback

Simulated preview
>
Output
Fetching metadata for functions project...

Project Name: my-functions-project
Runtime: go
Region: nyc3

Function Count: 3
| Function Name | Status   | Last Deployed         |
|---------------|----------|-----------------------|
| func1         | active   | 2023-10-01 12:00 UTC  |
| func2         | inactive | 2023-09-28 09:30 UTC  |
| func3         | active   | 2023-10-02 14:15 UTC  |

Command Breakdown

What each part is doing

doctl
Base Command
The executable that performs this operation. Here it runs Doctl before the shell applies any redirect operators.
sls
sls|serverless
The host or server name supplied to this command.

How To Run

Execution path

  1. Step 1

    Run `doctl serverless get-metadata` in your terminal.

  2. Step 2

    Review the output for project details and function statuses.

  3. Step 3

    Use the function names for further management commands.

Alternative Approaches

Comparable commands in other tools

Alternative cloud infrastructure tools for the same job.