neonctl 2.7.0 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,6 +39,16 @@ export const builder = (argv) => {
39
39
  await list(args);
40
40
  })
41
41
  .command('create', 'Create a project', (yargs) => yargs.options({
42
+ 'block-public-connections': {
43
+ describe: projectCreateRequest['project.settings.block_public_connections']
44
+ .description,
45
+ type: 'boolean',
46
+ },
47
+ 'block-vpc-connections': {
48
+ describe: projectCreateRequest['project.settings.block_vpc_connections']
49
+ .description,
50
+ type: 'boolean',
51
+ },
42
52
  name: {
43
53
  describe: projectCreateRequest['project.name'].description,
44
54
  type: 'string',
@@ -151,6 +161,18 @@ const list = async (props) => {
151
161
  };
152
162
  const create = async (props) => {
153
163
  const project = {};
164
+ if (props.blockPublicConnections !== undefined) {
165
+ if (!project.settings) {
166
+ project.settings = {};
167
+ }
168
+ project.settings.block_public_connections = props.blockPublicConnections;
169
+ }
170
+ if (props.blockVpcConnections !== undefined) {
171
+ if (!project.settings) {
172
+ project.settings = {};
173
+ }
174
+ project.settings.block_vpc_connections = props.blockVpcConnections;
175
+ }
154
176
  if (props.name) {
155
177
  project.name = props.name;
156
178
  }
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "git+ssh://git@github.com/neondatabase/neonctl.git"
6
6
  },
7
7
  "type": "module",
8
- "version": "2.7.0",
8
+ "version": "2.8.0",
9
9
  "description": "CLI tool for NeonDB Cloud management",
10
10
  "main": "index.js",
11
11
  "author": "NeonDB",