You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The project provides a command line interface for using the API of Infinity Next
3
4
4
-
## Generating an API Key *(Required)*
5
+
## Generating an API Key _(Required)_
6
+
5
7
If already have an API key from setting up [terraform-provider-infinity-next](https://github.com/CheckPointSW/terraform-provider-infinity-next) then you can skip this section.
6
-
1. Go to https://portal.checkpoint.com, navigate to *Global Settings -> API Keys*
7
8
8
-
2. Create a new API key and select *Infinity Policy* as the service, with *Admin* role, we recommend that you specify a meaningful comment for the key so you could identify them later and avoid mistakes.
9
+
1. Go to https://portal.checkpoint.com, navigate to _Global Settings -> API Keys_
10
+
11
+
2. Create a new API key and select _Infinity Policy_ as the service, with _Admin_ role, we recommend that you specify a meaningful comment for the key so you could identify them later and avoid mistakes.
9
12
10
-
3. Store the *Client ID* and *Secret Key* in a secure location, and note there's no way to view the secret key afterward.
13
+
3. Store the _Client ID_ and _Secret Key_ in a secure location, and note there's no way to view the secret key afterward.
11
14
12
15
## Usage
16
+
13
17
Download and install the CLI found in the [latest release](https://github.com/CheckPointSW/infinity-next-terraform-cli/releases/latest)
14
18
15
19
You could run `inext help` and get all available options and commands.
16
20
17
21
The CLI requires the same credentials used to configure the provider, there are 3 options to pass these credentials to the CLI:
18
22
19
23
1. Set the environment variables: `INEXT_REGION`, `INEXT_CLIENT_ID` and `INEXT_ACCESS_KEY` and run `inext <command>`, this is more comfortable for usage right after `terraform apply` since it uses the same environment variables.
20
-
21
24
2. Set credentials using flags `--client-id` (shorthand `-c`) and `--access-key` (shorthand `-k`)
25
+
22
26
```
23
27
inext publish -c $INEXT_CLIENT_ID -k $INEXT_ACCESS_KEY -r us
24
28
```
@@ -32,19 +36,25 @@ The CLI requires the same credentials used to configure the provider, there are
32
36
Run `inext <command>` and the CLI would be configured using `~/.inext.yaml` by default, can be set using `inext --config <config-path> <command>`
0 commit comments