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+CAngLzbPYZb6HbW5QDGU2AAwBGAGzCArBIAcAZgDs4iQC4WLNsA5wuNPgJFKZCpQFgAUAGF0VCAFMb2ACJQAzjHQuo0a8pIa8BMQkVHDAtgwARFA0tgAeAHQAVi4RpKhQYPah4VExCckR5lY29hDYACp0MLa+cDAwYHwEUNbIiXAAbnAuvAiwEADUwOi44Lbm5nHuSCS4tqhw4BAkAN5mJH62ELwAFgAUAJSr6xskCFsgCFTBtgDuJABKtm7WLrZ7EeXPEACEEQdEE4AXwANGYgURzGpmBotDoePwhGJJEZFJIitY7A5nC9PN4qL5-FpSCEwpEwoQtKk-BksmSImQwOgyIVLJjShUqjUSHUGk18W0XNYJmYVhFgHBogB9YajTIRZS5Ob5FJAqHQ2GBeF6JGGORoiTMIA)

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