Get Started
Start building Fig apps today
<html>
<head>
<meta fig:app = "sample-app">
<script>
fig.init = (stdin, options) => {
// fig.init is the entry point to your app's logic.
// Calling any fig command prior will result in undefined behavior.
fig.title = fig.env.PWD
fig.icon = `fig://${fig.env.PWD}`
fig.execute('ls -1', (files) => {
document.body.innerText = files
})
}
</script>
</head>
<body>
</body>
</html>Last updated