Skip to content

Commit 288e57d

Browse files
authored
docs: improve object-storage access-keys create flag docs (#1511)
Specify the valid permissions (read-write-admin, read-only-admin, read-write-objects, read-only-objects) and note that if you don't provide the `--bucket` flag, all buckets are accessible by the key. All Submissions: * [x] Have you followed the guidelines in our Contributing document? * [x] Have you checked to ensure there aren't other open [Pull Requests](https://github.com/fastly/cli/pulls) for the same update/change? <!-- You can erase any parts of this template not applicable to your Pull Request. --> ### New Feature Submissions: * [x] Does your submission pass tests? ### User Impact * [x] What is the user impact of this change? Better help output.
1 parent 5d02c32 commit 288e57d

File tree

1 file changed

+2
-2
lines changed
  • pkg/commands/objectstorage/accesskeys

1 file changed

+2
-2
lines changed

pkg/commands/objectstorage/accesskeys/create.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ func NewCreateCommand(parent argparser.Registerer, g *global.Data) *CreateComman
3838

3939
// Required.
4040
c.CmdClause.Flag("description", "Description of the access key").Required().StringVar(&c.description)
41-
c.CmdClause.Flag("permission", "Permissions to be given to the access key").Required().StringVar(&c.permission)
41+
c.CmdClause.Flag("permission", "Permissions to be given to the access key (read-write-admin, read-only-admin, read-write-objects, read-only-objects)").Required().StringVar(&c.permission)
4242

4343
// Optional.
44-
c.CmdClause.Flag("bucket", "Bucket to be associated with the access key. Set flag multiple times to include multiple buckets").StringsVar(&c.buckets)
44+
c.CmdClause.Flag("bucket", "Bucket to be associated with the access key. Set flag multiple times to include multiple buckets. If omitted, all buckets are associated").StringsVar(&c.buckets)
4545
c.RegisterFlagBool(c.JSONFlag())
4646

4747
return &c

0 commit comments

Comments
 (0)