2022-10-17 17:46:38 +00:00
---
stage: Create
group: Code Review
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments
---
2022-10-19 14:32:40 +00:00
<!--
2022-10-17 17:46:38 +00:00
This documentation is auto generated by a script.
2023-02-07 08:22:45 +00:00
Please do not edit this file directly. Run `make gen-docs` instead.
2022-10-19 14:32:40 +00:00
-->
2022-10-17 17:46:38 +00:00
2022-10-21 14:38:48 +00:00
# `glab snippet`
2022-10-17 17:46:38 +00:00
Create, view and manage snippets
## Examples
```plaintext
2022-10-21 14:38:48 +00:00
glab snippet create --title "Title of the snippet" --filename "main.go"
2022-10-17 17:46:38 +00:00
```
2022-10-21 14:38:48 +00:00
## Options
2022-10-17 17:46:38 +00:00
```plaintext
-R, --repo OWNER/REPO Select another repository using the OWNER/REPO or `GROUP/NAMESPACE/REPO` format or full URL or git URL
```
2022-10-21 14:38:48 +00:00
## Options inherited from parent commands
2022-10-17 17:46:38 +00:00
```plaintext
--help Show help for command
```
## Subcommands
2023-11-20 04:44:42 +00:00
- [`create` ](create.md )