Manage Settings from the Command Line

Last modified: March 23, 2021

Another way to manage settings is with the ayxhub.ps1 script. To run the script, open Windows PowerShell as an admin and execute&"C:\Program Files\Alteryx\Alteryx Analytics Hub\ayxhub.ps1"

Some of the Available Commands


List the current configuration. Shows changes that are pending since the latest Alteryx Analytics Hub restart.


Specify the localhost port on which the application listens.

-https generate-selfsigned [location] [hostname]

Generate self-signed certificate in a specified or default location issued to the specified hostname or localhost if hostname is not defined.

-https enable <cert-file> <key-file>

Enable https by specifying the certificate and key locations.

-https disable

Disables https.

-db postgres <username> <password>

Set the credentials used to connect to the database.

-jwt_secret generate

Generate a new JWT secret. This ends all existing user sessions.


Start Alteryx Analytics Hub.


Stops Analytics Hub frontend, backend, and engine worker services gracefully. It does not stop the licensing or Postgres services. 

-stop force

Stop Alteryx Analytics Hub immediately.


Restart Alteryx Analytics Hub [stops gracefully].

-pending remove

Remove any pending changes and revert back to previous configuration.



Was This Page Helpful?

Running into problems or issues with your Alteryx product? Visit the Alteryx Community or contact support. Can't submit this form? Email us.