Skip to main content

PythonAnywhere Command Line Interface.

Project description


*A PythonAnywhere Command Line Interface.*

.. image::

.. image::


Set your environment variables::

# Your API_KEY can be found at and select the "API token" tab.

# Your PythonAnywhere username


# Create a new webapp
$ pythonanywhere webapps create python27

# Delete a webapp
$ pythonanywhere webapps delete

# Reload Webapp
$ pythonanywhere webapps reload

# Update Webapp python version or virtualenv path
$ pythonanywhere webapps update --python_version=2.7 --virtualenv_path=/path/to/env

Static File Mappings::

# Create new static mapping
$ pythonanywhere static_mapping create /static/ /path/to/static

# Delete static mapping
$ pythonanywhere static_mapping delete 123456

# Display a list of static mappings
$ pythonanywhere static_mapping list

# Update a static mapping url and/or path
$ pythonanywhere static_mapping update --url=/new-static/ --path=/new/path/to/static


# Display help
$ pythonanywhere -h


This application uses Open Source components. You can find the source code of their open source projects along with license information below. We acknowledge and are grateful to these developers for their contributions to open source.

:Project: helper_scripts
:Copyright: Copyright (c) 2017 PythonAnywhere LLP
:License: (MIT)



0.3.0 (2017-10-21)

* Update to use pythonanywhere-wrapper

0.2.0 (2017-10-14)

* Command takes optional --api_key & --user argument
* Add History

0.1.1 (2017-10-13)

* Fix typo with repo URL

0.1.0 (2017-10-12)

* Initial release on PyPI

Project details

Download files

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

Files for pythonanywhere_cli, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size pythonanywhere_cli-0.3.0.tar.gz (15.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page