For the complete documentation index, see llms.txt. This page is also available as Markdown.

Commands

Exploring the CLI

vgs --help
vgs --version
vgs <GROUP> --help
vgs <GROUP> <COMMAND> --help

Authentication

Login

Authenticate with your personal VGS account:

vgs login
vgs login --no-browser
vgs login --idp <IDP_ID>
vgs login --config <CONFIG_FILE>
Option
Purpose

--browser / --no-browser

Open the browser automatically or print the authorization URL.

--idp <IDP_ID>

Authenticate through a non-VGS Identity Provider. An explicit --idp takes precedence over [login] idp in the configuration file.

--config <CONFIG_FILE>

Read login defaults from a ConfigObj-format file. This parameter will take precedent over the VGS_CONFIG_FILE environment variable.

Logout

Sessions automatically expire after 30 minutes of inactivity. You can also log out manually:

VGS CLI Environment Variables

VGS_CONFIG_FILE

The VGS CLI will pull settings from the file referenced in this environment variable.

VGS_CLIENT_ID & VGS_CLIENT_SECRET

When both VGS_CLIENT_ID and VGS_CLIENT_SECRET are present, the CLI uses these service-accounts to authenticate automatically to your VGS Organization.

Collect Forms

Create or Update a Form

Delete a Form

Get List of Forms

Get Form

Notifications

Generate Notification Template

Create or update a notification tenant in an organization

Omit data.id to create an integration and include it to update one. Do not add provider-controlled secrets to the input file.

Enable, disable, or delete

apply notification accepts exactly one of --file, --enable, or --disable. Deletion prompts for confirmation unless --confirm / -y is provided.

Service Accounts

Please check the Service Account page for more info.

Prepare a Service Account Using a Template

Generate the service account configuration from the vgs-cli template and store it to the service_account.yaml file:

Apply

To apply the service account configuration stored in the service_account.yaml file with your organization ID and execute:

Delete

To delete the service account, specify your organization ID, service account client ID and execute:

Access Credentials

VGS CLI can be used to manage access credentials of the tenant. These credentials can be used to access HTTPS Outbound Routes and the SFTP Proxy Routes.

Generate

Generate a new set of access credentials to the tenant

Get

List all access credentials in the tenant

Routes

VGS CLI can be used to manage route configurations of the tenant.

Get

Get details of your routes in YAML format:

To write route details to a file:

Please refer to the documentation for more information.

Apply

Create or update the route:

Please refer to the documentation for more information.

Tenants

Generate

The generated configuration file includes the tenant name, environment, region, organization, payment-product enrollment settings, and card-storage settings:

Apply

Use a template file to create a tenant in an organization.

If the organization ID is present in both locations, the values must match.

Get

Get details of your tenants in a YAML format:

Organizations

Get

Get details of your organizations in a YAML format:

Certificates

List

List all certificates associated to a tenant:

Generate CSR

Generate a CSR that can be used to create a certificate in another system. Once the certificate is generated, it can be uploaded using the vgs certificate upload command.

Name, shorthand
Description

--tenant, -T

Tenant in which this certificate will be stored.

--type

The type of certificate to generate within VGS. Available options: - apple-pay-merchant-identity - apple-pay-payment-processing

--name

A human readable name for this certificate object in VGS

--output, -o

Output file where the CSR will be dropped after creation.

Upload

Upload a certificate to a previously created CSR that was generated with the vgs certificate generate-csr command.

Name, shorthand
Description

--tenant, -T

Tenant in which this certificate will be stored.

--cert-id

Certificate ID you want to associated this certificate with

--file, -f

Path to file you wish to upload and associate with the generated CSR.

Logs

Access

Print access logs for the tenant. Log records are grouped by 30 items by default if --tail option is not specified or larger than 30. Could be fetched up to 1020 rows at a time:

Options

Name, shorthand
Description

--tenant, -T

Set target tenant to get logs (e.g. tnt23f12a3g).

--since

Print logs newer than a relative duration (e.g. 30s, 5m, or 3h) or after a specific RFC 3339 date.

--until

Print logs older than a relative duration (e.g. 30s, 5m, or 3h) or before a specific RFC 3339 date.

--tail

Set number of records to show from the end of the logs. Defaults to all logs if unspecified.

--output, -o

Define output format. Possible values: json, yaml. Defaults to yaml if unspecified.

Examples

Operations

Print operation logs for the particular request:

Options

Name, shorthand
Description

--tenantt, -T

Set target tenant to get logs (e.g. tnt23f12a3g).

--request, -R

Set request id to get logs. (e.g. 3f2ab1258a87bc03f18d41a71cf317ee).

--output, -o

Define output format. Possible values: json, yaml. Defaults to yaml if unspecified.

Examples

CLI Debugging

Use -d / --debug before a command to enable debug output.

Last updated