Gemini CLI is a coding agent tool developed by Google that is similar to OpenAI Codex or Claude Code. However, unlike its competitors, it comes with free credit grants.
Steps to install
1) Install globally via NPM.
npm install -g @google/gemini-cli
2) Run the tool.
gemini
3) Select a color theme.
4) Finally, choose how to authenticate (fund) your usage. To get the free grants, please log in with your personal Gmail account.
Building a universal/app link application
1) Let's specify our requirements.
I would like to build a simple web application to serve as a replacement for Firebase's dynamic link functionality.
Here are the requirements:
1. App Link Generation Endpoint
Input: API Key, Fallback URL, Additional Data
Output: A unique app link in the format https://domain.name/<unique_code>,
where <unique_code> is an 8-character alphanumeric string.
The mapping should be stored in a database table with relevant indexing.
2. App Association Endpoints
The application should serve the following files for app association:
Android: https://domain.name/.well-known/assetlinks.json
iOS: https://domain.name/.well-known/apple-app-site-association
3. App Link Retrieval Endpoint
If mobile apps successfully intercept the link, they use this endpoint to retrieve Fallback link and Additional data.
Input: API Key, Unique Code
Output: Fallback URL, Additional Data
4. Redirection Logic
If the app link is not intercepted by a mobile app, users should be redirected to the specified fallback URL.
5. Tech Stack
Laravel 12 (The project is already created in this path)
SQLite3
2) Create an empty Laravel project and git init.
3) Send the prompt to Gemini CLI.
4) Application is completed in around 15 minutes.
Test our App
1) Can we create an app link? Yes.
2) Can we retrieve data associated with the link? Yes
3) Are the iOS and Android association files hosted? Yes
4) Is the fallback URL working? Yes.
Conclusion
The Gemini CLI has completed the app development with only a text-based requirement as input.