Algolia CLI / Commands

Manage your profiles.

algolia profile add

Usage
algolia profile add [flags]

Add a new profile configuration to the CLI.

Examples

1
2
3
4
5
6
# Add a new profile (interactive)
$ algolia profile add

# Add a new profile (non-interactive) and set it to default
$ algolia profile add --name "my-profile" --app-id "my-app-id" --api-key "my-api-key" --default

Flags

--app-id

ID of the application.

-d, --default

Set the profile as the default one.

-n, --name

Name of the profile.

algolia profile list

Usage
algolia profile list [flags]

List the configured profile(s).

Examples

1
2
3
# List the configured profiles
$ algolia profile list

algolia profile remove

Usage
algolia profile remove <profile> [flags]

Remove the specified profile.

Examples

1
2
3
# Remove the profile named "my-app" from the configuration
$ algolia profile remove my-app

Flags

-y, --confirm

skip confirmation prompt.

algolia profile setdefault

Usage
algolia profile setdefault <profile> [flags]

Set the default profile.

Examples

1
2
3
# Set the default profile to "my-app"
$ algolia profile setdefault my-app

Did you find this page helpful?