cli icon indicating copy to clipboard operation
cli copied to clipboard

Create an application

Open Sveinki10 opened this issue 3 years ago • 6 comments

Is it on the roadmap for this project to make a command to create an Algolia application from the CLI?

Sveinki10 avatar Jul 17 '22 21:07 Sveinki10

Yes @Sveinki10 ! We'd like to support instantiating a front-end app from the command line for easy quickstart!

This is not planned for our GA release, but for a follow-up release

Great question! 😄

khalidelassaad avatar Jul 28 '22 17:07 khalidelassaad

Creating indices would also be helpful 😄

keybits avatar Sep 22 '22 07:09 keybits

Creating indices would also be helpful 😄

@keybits If you add objects to a non-existing index, it'll be created, just like when using the API or API clients. For example:

algolia objects import <new_index> --file records.ndjson

kai687 avatar Sep 22 '22 08:09 kai687

Aha - perfect, thanks!

keybits avatar Sep 22 '22 08:09 keybits

If you add objects to a non-existing index, it'll be created, just like when using the API or API clients. For example:

algolia objects import <new_index> --file records.ndjson

This would be useful to have stated in the documentation. If it is there...it isn't obvious.

To me, creating indexes would be a primary use case so it would be great to have that "pop out" in the documentation. Heck, even having an alias for algolia indices create ... to actually run algolia objects import ... would be huge in terms of discoverability.

In fact, doing:

algolia -P my-project indices config import new-index-name -F config.json --scope settings -y

will also create the index new-index-name.

gregfenton avatar Feb 21 '24 20:02 gregfenton

Oh, and +1 for the ability to create applications.

I'm sure this will involve a decent amount of development in order to authenticate to the Algolia account which is a lot more than simply having some API keys for an existing application, but it would be a fantastic utility to streamline/automate the creation of new instances of applications. Having to do manual steps dramatically slows things down and increases risk of human error.

gregfenton avatar Feb 21 '24 20:02 gregfenton