Skip to content

Commit

Permalink
feat: Update Readme for sf cli set settings
Browse files Browse the repository at this point in the history
  • Loading branch information
etienne-monsieurbiz committed Jul 24, 2023
1 parent bf922ca commit 7e06676
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,21 @@ You can find our own example in the source code, section `sylius_fixtures`: [con

It's also possible to run test fixtures with a local suite in development: `make sylius.fixtures.local`.

### Use CLI

You can use a CLI command to set a value for a setting directly from the console:
`$ ./bin/console monsieurbiz:settings:set {alias} {path} {type} {value} --channel="FASHION_WEB" --locale="en_US"`

Examples:
```bash
$ ./bin/console monsieurbiz:settings:set app.default demo_message text 'fashion message' --channel="FASHION_WEB" --locale="en_US"
$ ./bin/console monsieurbiz:settings:set app.default demo_message json '{"foo":"baz"}' --channel="FASHION_WEB" --locale="en_US"
$ ./bin/console monsieurbiz:settings:set app.default demo_message datetime '2023-07-24 01:02:03' --channel="FASHION_WEB" --locale="en_US"
$ ./bin/console monsieurbiz:settings:set app.default enabled boolean 0
```
The options channel and locale can be omitted if you want to set the value for a global scope.


## Contributing

You can find a way to run the plugin without effort in the file [DEVELOPMENT.md](./DEVELOPMENT.md).
Expand Down

0 comments on commit 7e06676

Please sign in to comment.