---
title: "selvpcclient"
sidebar_label: "selvpcclient"
sidebar_position: 7
description: "How to install the Go library and the selvpc CLI console client"
---

import Formbricks from '@theme/MDXComponents/Formbricks'

# selvpcclient

The [go-selvpcclient](#install-go-selvpcclient) library and [python-selvpcclient](#install-python-selvpcclient) console client can be used to work with [Cloud Management API](/api/cloud-projects-and-resources/) and [Quota Management API](/api/quota-management/): projects, quotas, and other objects.

## Install go-selvpcclient \{#install-go-selvpcclient}

The [go-selvpcclient](https://github.com/selectel/go-selvpcclient) package contains the Go library.

You can view library usage examples in the [selvpcclient documentation](https://pkg.go.dev/github.com/selectel/go-selvpcclient/v3/selvpcclient) on pkg.go.dev.

1. Download the package:

   ```sh
   go get github.com/selectel/go-selvpcclient/selvpcclient/v3
   ```

2. [Create a service user](/access-control/manage/add-user.mdx#add-service-user) for authentication.

## Install python-selvpcclient \{#install-python-selvpcclient}

The [python-selvpcclient](https://github.com/selectel/python-selvpcclient) package contains the selvpc CLI console client.

You can view selvpc CLI usage examples in the [selvpcclient documentation](https://github.com/selectel/python-selvpcclient/tree/master/docs/usage) on GitHub.

1. [Obtain a static token (X-Token)](/api/authorization/#static-token).

2. Set environment variables:

   ```sh
   export SEL_TOKEN=<x_token>
   export SEL_URL=https://api.selectel.ru/vpc/resell
   export SEL_API_VERSION=2
   export OS_AUTH_URL=https://cloud.api.selcloud.ru/identity/v3
   ```

   Specify:

   * `<x_token>` is the static token you obtained in step 1;
   * `OS_AUTH_URL` — the URL depends on the region and pool, you can find it in the [Authentication](/api/urls/#authorization) subsection of the [URL List](/api/urls/).

3. Install Python 3 and virtualenv:

   ```bash
   sudo apt update
   sudo apt install python3 virtualenv
   ```

4. Install pip3:

   ```bash
   sudo apt install python3-pip
   ```

5. Create a virtual environment for working with selvpcclient:

   ```bash
   virtualenv env
   ```

6. Activate the virtual environment:

   ```bash
   source env/bin/activate
   ```

7. Install the selvpcclient package:

   ```sh
   pip install -U python-selvpcclient
   ```

<Formbricks />
