Skip to main content
Aiven Client |BuildStatus|_
===========================

.. |BuildStatus| image:: https://travis-ci.org/aiven/aiven-client.png?branch=master
.. _BuildStatus: https://travis-ci.org/aiven/aiven-client

Aiven is a next-generation managed cloud services platform. Its focus is in
ease of adoption, high fault resilience, customer's peace of mind and
advanced features at competetive price points. See https://aiven.io/ for
more information about the backend service.

aiven-client (`avn`) is the official command-line client for Aiven.

::

`'+;` `'+;`
The Aiven Crab '@@@#@@@` '@@@#@@@`
~~~~~~~~~~~~~~ #@. #@. @@. #@.
@: ,@@ @@ @: ,@@ @@
,@ @@@@@ :@ :@ @@@@@ .@
@ #@@@. #@ @` #@@@` @@
@@ `@# @@ `@#
@@#. :@@+ @@#. :@@#
`+@@@' `#@@@'
,;:` ,;;.
@@@@@@# .+@@@@@@@@@@@@@'. `@@@@@@@
@@@@@# @@@@@@@@@@@@@@@@@@@@@@+ @@@@@@
@@@ ;@@@@@@@@@@@@@@@@@@@@@@@@@@@` `@@;
` `@@@@@@@@@@@ ;@@@@@@@@@@@
`@@@ '@@@@@@@@@@@@@ @@@@@@@@@@@@@` @@@
'@@@` .@@@@@@@@@@@@@@@ `@@@@@@@@@@@@@@@ @@@@`
@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@
'@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@
,:::; @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ,:::
:@ ,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ #@
@@@ +@#+#@@@@@@@@@@@@@@@@@@@@@@@@@#+#@. @@@
@@@@ '@@@@@@@@@@@@@@@@@@@. @@@@
@@@ @@@@@@+ @@@@@@@@@@@@@@@@@ @@@@@@; @@@
@@ @@@@@@@@@ @@@@@@@@@@@@@@@ `@@@@@@@@@ @+
@@@@@@@@@@@ :@@@@@@@@@@@@@ @@@@@@@@@@@ '
`@@@@@@@@@@@ ``` ,@@@@@@@@@@@
`@@@@@@ '@ :@: @@@@@@
@@@@@: @@@@@@
@@@@@ @@@@@
@@@@# @@@@'

Platform requirements
=====================

Aiven Client has been tested and developed on Linux and Mac OS X systems.
It is a Python program that works with Python 2.7 or 3.4 or newer versions.
The only external dependency is Requests_ (and certifi_ on Windows/OSX).

.. _`Requests`: http://www.python-requests.org/
.. _`certifi`: https://certifi.io/

Installation
============

From PyPI (Linux/OSX)::

$ python -m pip install aiven-client

From PyPI (Windows)::

c:\> python -m pip install aiven-client

Build an RPM package (Linux)::

$ make rpm

Basic Usage
===========
* NOTE: On Windows you may need to use ``python -m aiven.client`` instead of
``avn``.
* All commands will output the raw REST API JSON response with ``--json``

Login and users
---------------
Login::

$ avn user login <your@email>

Expire all authentication tokens for your user, logs out all web console sessions, etc.
You will need to login again after this.::

$ avn user tokens-expire

Projects
--------
List projects::

$ avn project list

Switch a project as the default one::

$ avn project switch <projectname>

Create a project::

$ avn project create myproject

Delete an empty project::

$ avn project delete myproject

Show project details::

$ avn project details

List authorized users in a project::

$ avn project user-list

Invite an existing Aiven user to a project::

$ avn project user-invite somebody@aiven.io

Remove a user from the project::

$ avn project user-remove somebody@aiven.io

View project event log::

$ avn events

View project log entries::

$ avn logs -n 100

Services
--------
List services (of the default project)::

$ avn service list

List services in a non-default project::

$ avn service list --project proj2

Switch default project::

$ avn project switch proj2

List only a specific service::

$ avn project list db1

Verbose list (includes connection information, etc.)::

$ avn project list db1 -v

Full service information in json, as it is returned by the Aiven REST API::

$ avn project list db1 --json

Only a specific field in the output, custom formatting::

$ avn project list db1 --format "The service is at {service_uri}"

Launching services
------------------
View available service plans::

$ avn service plans

Launch a PostgreSQL service::

$ avn service create mydb -t pg --plan hobbyist

View service-specific options::

$ avn service types -v

Launch a PostgreSQL service of a specific version (see above command)::

$ avn service create mydb96 -t pg --plan hobbyist -c pg_version=9.6

Update a service to a bigger plan AND move it to another cloud::

$ avn service update mydb --plan startup-4 --cloud aws-us-east-1

Power off a service::

$ avn service update mydb --power-off

Power on a service::

$ avn service update mydb --power-on

Terminate a service (all data will be gone!)::

$ avn service terminate mydb

Clouds
------
List available cloud regions::

$ avn cloud list

More help
---------
::

$ avn -h
$ avn user -h
$ avn service -h
$ avn service create -h
$ avn project -h

License
=======

Aiven Client is released under the Apache License, Version 2.0.

For the exact license terms, see `LICENSE` and
http://opensource.org/licenses/Apache-2.0 .

Contact
=======

Bug reports and patches are very welcome, please post them as GitHub issues
and pull requests at https://github.com/aiven/aiven-client

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiven-client-1.1.3.tar.gz (27.0 kB view details)

Uploaded Source

File details

Details for the file aiven-client-1.1.3.tar.gz.

File metadata

  • Download URL: aiven-client-1.1.3.tar.gz
  • Upload date:
  • Size: 27.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for aiven-client-1.1.3.tar.gz
Algorithm Hash digest
SHA256 99477c2510ed49f1bbdc1ffc45a69485dbf453d7e3b64295721355ebbd37de8c
MD5 f259791505d45107643d4c5c164a0d81
BLAKE2b-256 77c23d56ead111e2536521c0431798d2bf3e5a7b89d96a00bcae9ed1f056f8cf

See more details on using hashes here.

Release history Release notifications | RSS feed

4.18.0

2 files

4.17.0

2 files

4.16.0

2 files

4.15.0

2 files

4.14.0

2 files

4.13.0

2 files

4.12.0

2 files

4.11.1

2 files

4.11.0

2 files

4.10.0

2 files

4.9.0

2 files

4.8.0

2 files

4.7.3

2 files

4.7.2

2 files

4.7.1

2 files

4.7.0

2 files

4.6.2

2 files

4.6.1

2 files

4.5.1

2 files

4.5.0

2 files

4.4.0

2 files

4.3.0

2 files

4.2.1

2 files

4.2.0

2 files

4.1.1

2 files

4.0.0

2 files

3.1.2

2 files

3.1.1

2 files

3.1.0

2 files

3.0.0

2 files

2.20.0

2 files

2.19.0

2 files

2.18.0

2 files

2.17.0

2 files

2.16.0

2 files

2.15.0

2 files

2.14.8

2 files

2.14.7

2 files

2.14.6

2 files

2.14.5

2 files

2.14.4

2 files

2.14.3

2 files

2.14.2

2 files

2.14.1

2 files

2.14.0

2 files

2.13.19

2 files

2.13.9

2 files

2.13.8

2 files

2.13.7

2 files

2.13.6

2 files

2.13.5

2 files

2.13.4

2 files

2.13.3

2 files

2.13.2

2 files

2.13.1

2 files

2.13.0

2 files

2.12.0

2 files

2.11.2

2 files

2.11.1

2 files

2.10.0

1 file

2.9.0

1 file

2.8.0

1 file

2.7.1

1 file

2.6.0

1 file

2.5.0

1 file

2.4.0

1 file

2.3.19

2 files

2.3.5

1 file

2.3.4

1 file

2.3.3

1 file

2.3.2

1 file

2.3.1

1 file

2.2.5

1 file

2.2.4

2 files

2.2.3

1 file

2.2.0

1 file

2.1.7

1 file

2.1.6

1 file

2.1.5

1 file

2.1.4

1 file

2.1.3

1 file

2.1.2

1 file

2.1.1

1 file

2.1.0

1 file

2.0.2

1 file

2.0.1

1 file

2.0.0

1 file

1.3.1

1 file

1.3.0

1 file

1.2.2

1 file

1.2.1

1 file

1.2.0

1 file

1.1.5

1 file

1.1.4

1 file

This release

1.1.3 This release

1 file

1.1.2

1 file

1.1.1

1 file

1.1.0

1 file

1.0.1

1 file

1.0.0

1 file

0.9.1

1 file

0.9.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page