Code blocks are powered by [Expressive Code](https://expressive-code.com/), a project by Astro. This is just a small showcase of functionality, it has a lot of options!

Warning

Do not use the `$` sign in your code blocks before the command.

## Output

If you would like to include the output of your code block, create a second code block below and add the `output` property to the opening code fence.

```sh
npx wrangler vectorize create tutorial-index --dimensions=3 --metric=cosine
```

```sh
✅ Successfully created index 'tutorial-index'


[[vectorize]]
binding = "VECTORIZE_INDEX" # available in your Worker on env.VECTORIZE_INDEX
index_name = "tutorial-index"
```

````mdx
```sh
npx wrangler vectorize create tutorial-index --dimensions=3 --metric=cosine
```


```sh output
✅ Successfully created index 'tutorial-index'


[[vectorize]]
binding = "VECTORIZE_INDEX" # available in your Worker on env.VECTORIZE_INDEX
index_name = "tutorial-index"
```
````

## Playground

If you add the `playground` option to the opening code fence for a Worker example, it will add a "Run Worker in Playground" link that will take the user to the [Worker's playground](https://developers.cloudflare.com/workers/playground/)

```js
export default {
  fetch() {
    return new Response("Test!");
  },
};
```

[Run Worker in Playground](https://workers.cloudflare.com/playground#LYVwNgLglgDghgJwgegGYHsHALQBM4RwDcABAEbogB2+CAngLzbPYZb6HbW5QDGU2AAwB2ABwBGAEwAWAGzSArJLEAuFizbAOcLjT4CREmfKViAsACgAwuioQApnewARKAGcY6N1Gi2VJTTwCYhIqOGB7BgAiKBp7AA8AOgArNyjSVCgwR3DImLik1KjLGztHCGwAFToYe384GBgwPgIoW2RkuAA3ODdeBFgIAGpgdFxwe0tLBM8kElx7VDhwCBIAbwsSAPsIXgALAAoASnXNrZIEHZAEKlD7AHcSACV7D1s3ewOoyteIAEIokciGcAL4AGgsIKIlnUzE02l0PH4QjEUjkimUohKtgcTlcb28vio-kC2lIYQi0QihG06QCWRylKiZDA6DIxWsOPKVRqdRIDSaLSJHTctimFjWUWAcFiAH1RuNslEVPkFoU0iCYbD4cFEfoUUZ0aZRMwgA)

````mdx
```js playground
export default {
  fetch() {
    return new Response("Test!");
  },
};
```
````
