Skip to content

Commit 472ff42

Browse files
Release
1 parent 2062ec8 commit 472ff42

File tree

4 files changed

+32
-8
lines changed

4 files changed

+32
-8
lines changed

.changeset/field-command-slice-patch.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @gadgetinc/ggt
22

3+
## 3.1.0
4+
5+
### Minor Changes
6+
7+
- 1e22257: Add model field lifecycle management command `ggt field`. `ggt field add` is the
8+
first subcommand to be supported, and matches existing `ggt add field`
9+
behavior.
10+
311
## 3.0.0
412

513
### Major Changes

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
- [`ggt add`](#ggt-add)
3232
- [`ggt model`](#ggt-model)
3333
- [`ggt action`](#ggt-action)
34+
- [`ggt field`](#ggt-field)
3435
- [`ggt open`](#ggt-open)
3536
- [`ggt list`](#ggt-list)
3637
- [`ggt login`](#ggt-login)
@@ -82,6 +83,7 @@ COMMANDS
8283
add Add resources to your app
8384
model Add and manage models in your app
8485
action Add and manage actions
86+
field Manage fields on your models
8587
var Manage your app's environment variables
8688
env Manage your app's environments
8789
open Open your app in a browser
@@ -381,6 +383,27 @@ EXAMPLES
381383
$ ggt action add fulfill --model shopifyOrder
382384
```
383385

386+
### `ggt field`
387+
388+
```sh-session
389+
$ ggt field -h
390+
Manage fields on your models
391+
392+
USAGE
393+
ggt field <command> [flags]
394+
395+
COMMANDS
396+
add Add a field to an existing model
397+
398+
FLAGS
399+
-a, --app, --application <app> Gadget app to use
400+
-e, --env, --environment <env> Environment to use
401+
402+
EXAMPLES
403+
$ ggt field add post/title:string
404+
$ ggt field add mystore/order/note:string
405+
```
406+
384407
### `ggt open`
385408

386409
```sh-session

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ggt",
3-
"version": "3.0.0",
3+
"version": "3.1.0",
44
"description": "The command-line interface for Gadget",
55
"homepage": "https://github.com/gadget-inc/ggt",
66
"bugs": {

0 commit comments

Comments
 (0)