3.2.27. tools write-config

Warning

This API is deprecated.

Axonius API v2 is now available, we recommend you move to API v2.

New features will no longer be added to this API. Axonius will only provide bug fixes.

Read about API v2

This command will prompt for the Connection Options, test if the supplied values connect properly, then write the variables to a .env file in the current working directory.

3.2.27.1. Examples

3.2.27.2. Help Page

3.2.27.2.1. axonshell tools write-config

Create/Update a ‘.env’ file with url, key, and secret.

axonshell tools write-config [OPTIONS]

Options

-u, --url <URL>

Required URL of an Axonius instance

-k, --key <KEY>

Required API Key (or username if credentials=True) of user in an Axonius instance

-s, --secret <SECRET>

Required API Secret (or password if credentials=True) of user in an Axonius instance

-e, --env <env>

Path to .env file when –export-format==env

Default:

/home/docs/checkouts/readthedocs.org/user_builds/axonius-api-client/checkouts/latest/docs/.env