List and Inspect Applications
This articles illustrates how to list and inspect Spin applications deployed to your Fermyon Wasm Functions account using the spin aka
plugin.
List Your Applications
To list all Spin applications deployed to your Fermyon Wasm Functions account, use the spin aka apps list
command as shown in the following snippet:
$ spin aka apps list
Depending on which apps you have deployed to your Fermyon Wasm Functions account, the actual output will differ from the output shown here.
hello-fermyon-wasm-functions
validate-jwt-tokens
query-external-database
By default, spin aka apps list
will print the name of each Spin application deployed to your Fermyon Wasm Functions account as plain text. Alternatively, you could add the --format
flag and change the output format to JSON
:
$ spin aka apps list --format json
This time, you’ll receive the list of Spin applications as JSON
array:
[
"hello-fermyon-wasm-functions",
"validate-jwt-tokens",
"query-external-database"
]
You can also use the --verbose
flag to learn more about your apps. Below, you’ll see the spin app names alongside their respective app ids.
$ spin aka apps list --verbose
hello-fermyon-wasm-functions(25a5fd1e-d476-40fd-bc54-6cee0e846540)
validate-jwt-tokens(8d8ffd7d-57fe-4c0e-b982-251542db8792)
query-external-database(b6cc1427-392c-4f96-859d-bb4d0adc216c)
Inspecting an Application
Use the spin aka apps info
command, to gather fundamental information about a Spin application deployed to your Fermyon Wasm Functions account. The command requires the name of the desired application to be passed as an argument to the --app
flag:
$ spin aka apps info --name hello-fermyon-wasm-functions
Name: hello-fermyon-wasm-functions
URL: https://25a5fd1e-d476-40fd-bc54-6cee0e846540.aka.fermyon.tech/
As you can see, you’ll also receive the public origin, which could be used to access the Spin application. Similar to the spin aka apps list
command, you could add the --format json
flag to make the command return fundamental information about a particular application as JSON
object:
$ spin aka apps info --name hello-fermyon-wasm-functions --format json
{
"name": "hello-fermyon-wasm-functions",
"url": "https://25a5fd1e-d476-40fd-bc54-6cee0e846540.aka.fermyon.tech/"
}