..  Copyright (c) 2014-present PlatformIO <contact@platformio.org>
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
       http://www.apache.org/licenses/LICENSE-2.0
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

.. _cmd_account_register:

platformio account register
===========================

.. contents::

Usage
-----

.. code-block:: bash

    platformio account register [OPTIONS]
    pio account register [OPTIONS]

Description
-----------

Create a new :ref:`pioaccount`.

Options
~~~~~~~

You can omit these options and enter them later in Register Wizard.

.. program:: platformio account register

.. option::
    --username, -u

A username. You can use it later for :ref:`cmd_account_login`,
:ref:`cmd_account_update`, and :ref:`cmd_account_forgot` commands.

The username must contain at least 4 characters including single hyphens, and cannot
begin or end with a hyphen.

.. option::
    --email, -e

An email. Please enter existing email, you will receive a confirmation letter.

.. option::
    --password, -p

A password. You will need it for :ref:`cmd_account_login`,
:ref:`cmd_account_password`, :ref:`cmd_account_token`, and :ref:`cmd_account_update`
commands.

.. option::
    --firstname

A first name.

.. option::
    --lastname

A last name.
