Skip to content

Commit 58ec61f

Browse files
author
Gil Mizrahi
authored
cli readme update (#521)
### What Update the ndc-postgres-cli readme with the new commands.
1 parent b6ede41 commit 58ec61f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

crates/cli/readme.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,31 @@ Create a configuration in a new directory using the following commands:
1818
```sh
1919
CONNECTION_URI='<postgres-connection-string>' cargo run --bin ndc-postgres-cli -- --context='<directory>' update
2020
```
21+
22+
## Upgrade a configuration
23+
24+
An older configuration version (e.g. "v3") can be upgraded to a newer one using the `upgrade` command.
25+
26+
```sh
27+
cargo run --bin ndc-postgres-cli -- upgrade --dir-from <DIR_FROM> --dir-to <DIR_TO>
28+
```
29+
30+
## Native Operations
31+
32+
Native Operations can be listed, added, and deleted using ndc-postgres-cli:
33+
34+
```sh
35+
$ CONNECTION_URI='<postgres-connection-string>' cargo run --bin ndc-postgres-cli -- --context='<directory>' native-operation --help
36+
Commands on Native Operations
37+
38+
Usage: hasura-ndc-postgres native-operation <COMMAND>
39+
40+
Commands:
41+
list List the existing Native Operations
42+
create Create a new Native Operation from a SQL file
43+
delete Delete an existing Native Operation from the configuration
44+
help Print this message or the help of the given subcommand(s)
45+
46+
Options:
47+
-h, --help Print help
48+
```

0 commit comments

Comments
 (0)