How To Set Up & Use Jarvis — The CLI That Makes Your Life Easier (2023)

How To Set Up & Use Jarvis — The CLI That Makes Your Life Easier (2)

Will Swan

·

Follow

Published in

·

9 min read

·

Jun 21, 2019

(Video) JARVIS - Marvel's Iron Man 3 Second Screen Experience - Trailer

--

(Video) VINTED REVIEW - HOW TO SELL ITEMS & MAKE MONEY ON VINTED! HOW TO BUY ITEMS, SHIPPING & TIPS FOR 2021
How To Set Up & Use Jarvis — The CLI That Makes Your Life Easier (3)

Today we are going to have a look step-by-step at how to install, set up, and use Jarvis. If you don’t know what Jarvis is, then you should read my previous story about how Jarvis came to exist.

Let’s start by having a look at how to install Jarvis. This can be done in two ways. The first — and the way that I recommend — is by using NPM. If you don’t already have NPM installed, then you can do so by going to the NodeJS website.

How To Set Up & Use Jarvis — The CLI That Makes Your Life Easier (4)

Installing Jarvis with NPM is as easy as:

npm install -g @willptswan/jarvis

You may get an error saying permission denied. If you see this, then try running the command with sudo in front of it.

The second way to install Jarvis is by cloning it from GitHub. First, you will need to navigate to your root directory using the command line. Then, clone the repo. After you have cloned the repo, move to the Jarvis directory and link it.

cd ~
git clone https://github.com/willptswan/jarvis.git
cd jarvis
npm link

Once you have installed Jarvis, run the following command to verify the install:

jarvis version

If this command displays the version, then you are ready to start setting up Jarvis.

To set up Jarvis so that you can use all of the features, there are three things you need to do: add a git config, add a Google Cloud Platform config, and add an S3 config.

Adding a git config

Let’s start by adding a git config. Currently, Jarvis only supports GitHub accounts, so that’s what we’ll use.

How To Set Up & Use Jarvis — The CLI That Makes Your Life Easier (5)

The first thing you need to do is create a personal access token for your GitHub account. This will allow Jarvis to upload the public SSH key to your account. The only scope that Jarvis currently requires is admin:public_key. Make sure you make a note of this token because you won’t be able to view it again.

Once you have created the token, run the following command:

jarvis config-new git
How To Set Up & Use Jarvis — The CLI That Makes Your Life Easier (6)

First, you will be asked to give the config and id. This can be anything that you want it to be. After Jarvis has made sure that the config id is unique, it will ask you for your GitHub username, your email, and the personal access token you’ve just created.

Once Jarvis has all the information it needs, it will create the SSH keys, update the SSH config, and upload the public SSH key to your GitHub account. Next, Jarvis will ask if you want to activate this config. For this tutorial, we will say no.

Adding a Google Cloud Platform config

To add a GCP config, you will need to have Google’s Cloud SDK installed. If you use Google Cloud Platform, then you probably already have it installed. If you don’t, you can get it on the Google Cloud website. Once you have installed the SDK and you are ready to add a config to Jarvis, run the following command:

jarvis config-new gcp
How To Set Up & Use Jarvis — The CLI That Makes Your Life Easier (7)

Like with adding a new git config, first Jarvis will ask you for a config id. After that, it will ask you for your GCP email and the name of the GCP project that you would like to use. Once you have entered all the information, Google’s Cloud SDK will ask you to log in. It’s as simple as that.

Adding an S3 config

How To Set Up & Use Jarvis — The CLI That Makes Your Life Easier (8)
(Video) Top 10 AI Tools to make your Life easier in 2023

To add an S3 account, you will need to create a new AWS IAM user. This user only needs programmatic access and requires the S3 Full Access policy. Make a note of the keys that AWS gives you because you will need these later.

Once you have created a new IAM user, run the following command:

jarvis config-new s3
How To Set Up & Use Jarvis — The CLI That Makes Your Life Easier (9)

Like when you added the previous configs, you will first be asked for an identifier for the config. Next, Jarvis will ask for the region your S3 bucket is in, your access key, your secret access key, and the name of your S3 bucket. Once you have entered this information, Jarvis will create the config.

You now have Jarvis all set up, and you are ready to start using it to its full potential.

Let’s start by having a look at the React commands. First, we’ll see how we can create a complete boilerplate React project with one command.

React init

First, create an empty folder for the project and move to it in the command line. You will also need an empty GitHub repo for the project, so go ahead and create one. Once you have done that, run the following command, replacing projectName with the name of your project.

jarvis react-init projectName
How To Set Up & Use Jarvis — The CLI That Makes Your Life Easier (10)

The first thing Jarvis will do is initialise a git directory. After it has done that, it will ask you which of your git configs you want to use and the name of the repo that you are working on. It will then activate the git config so that it’s ready to be used.

Next, Jarvis will create all of the files and folders for the project. Halfway through this process, it will ask if the project is going to be deployed to Google App Engine. For this tutorial, respond with yes. Once all the files and folders have been created, Jarvis will install all of the required NPM packages for the project. Next, it will ask if you want to run the tests, and then after that, it will ask if you want to build and run the project.

You now have a React project initialised and ready to start creating cool things.

React create

Next, let's have a look at creating a React component using Jarvis. This is as easy as running the following command. Be sure to replace ComponentName with the name you would like to give the component.

jarvis react-create ComponentName
How To Set Up & Use Jarvis — The CLI That Makes Your Life Easier (11)

Creating a React component is as easy as that. All the files that Jarvis creates are filled with everything you need to get straight into building the component.

React deploy

The last of the React commands is react-deploy. With this command, you can deploy your project to Google App Engine, upload the CSS & JS bundle to S3, and push the changes to GitHub all in one command.

How To Set Up & Use Jarvis — The CLI That Makes Your Life Easier (12)

The first thing you’ll need to do is make sure that your GCP project contains an App Engine application. If it doesn’t, then create one now in the GCP console.

If you have recently been using a different GCP config, then you may need to run gcloud auth login before you run the Jarvis react deploy command.

jarvis react-deploy 1.0.0
How To Set Up & Use Jarvis — The CLI That Makes Your Life Easier (13)

First, tests and a production build are run. You will then be asked if the current active S3 config is correct. If it is, then the index.html file will be updated with production URLs. After index.html has been updated, you will be asked to confirm that the git config is correct. If it is correct, then all changes will be pushed to GitHub. Next, you will be asked if the GCP config is correct. If it is, then the project will be deployed to Google App Engine. Lastly, the production CSS & JS bundles will be uploaded to S3. Once this has all completed, your project will be live and ready to be seen and used by the world.

React build

If you want to run your project in the dev environment, all you have to do is run:

jarvis react-build
How To Set Up & Use Jarvis — The CLI That Makes Your Life Easier (14)

You will be asked if the current active S3 config is correct. This is so that if a production version has been built, the index.html file will be updated to dev settings. A new terminal window will be opened, and the build will run. Your files will be watched, so you don’t have to rebuild every time you make a change.

Git pull

To pull changes from GitHub, just run:

jarvis git-pull
How To Set Up & Use Jarvis — The CLI That Makes Your Life Easier (15)
(Video) Music for Productive Work — Tony Stark's Concentration Mix

Jarvis will ask if the current active git config is correct. If it is, then the changes will be pulled correctly.

Git clone

If you want to clone a repo, run the following command, replacing repoName with the name of the repo that you want to clone.

jarvis git-clone repoName
How To Set Up & Use Jarvis — The CLI That Makes Your Life Easier (16)

Just like with git-pull, you will be asked if the current git config is correct. If it is, then the repo will be cloned.

Git push

If you want to push changes to GitHub, you have three options. Firstly, you can push all of the files by running:

jarvis git-push 1.0.0

Secondly, you can push a single file:

jarvis git-push 1.0.0 file.js

And lastly, you can push multiple files:

jarvis git-push 1.0.0 file1.js file2.js
How To Set Up & Use Jarvis — The CLI That Makes Your Life Easier (17)

When pushing changes to GitHub, you will be asked if the current active git config is correct. If it is, then Jarvis will add the files, commit them with the version that you pass, and then push them.

Config switch

To switch between different configs, all you need to do is run the following command, replacing type with the type of config you want to switch.

jarvis config-switch type
How To Set Up & Use Jarvis — The CLI That Makes Your Life Easier (18)

Jarvis will then ask you which config you would like to switch to, and it will switch to the config you choose.

Config update

Updating a config is simple. Just like with switching configs, run the following command, replacing type:

jarvis config-update type
How To Set Up & Use Jarvis — The CLI That Makes Your Life Easier (19)

Jarvis will ask which config you want to update. Once you have chosen a config to update, it will then ask for new values for each property of the config. If you don’t want to update a specific property, then you can just hit enter, and the property will stay the same. Once you have entered all the new properties, Jarvis will ask if you want to make this config active.

Config delete

To delete a config, run the following command, replacing type:

jarvis config-delete type
How To Set Up & Use Jarvis — The CLI That Makes Your Life Easier (20)

You will be asked which config you would like to delete. Jarvis will then check that you are sure you want to delete the config. If you are sure, then the config will be deleted, and Jarvis will ask you to activate a new config.

Site open and search

Jarvis has a convenient feature for opening websites. For this all you need to do is run:

jarvis site-open medium.com
How To Set Up & Use Jarvis — The CLI That Makes Your Life Easier (21)

You can also use one of Jarvis’s shorthand sites:

jarvis site-open so (Stack Overflow)
jarvis site-open npm (NPM)
jarvis site-open cocoa (CocoaPods)
jarvis site-open g (Google)
jarvis site-open awe (Awesome)
jarvis site-open gh (GitHub)

If you want to search a website, you can’t just paste in any URL. You have to use one of Jarvis’s shorthands:

jarvis site-search so (Stack Overflow)
jarvis site-search npm (NPM)
jarvis site-search g (Google)
jarvis site-search gh (GitHub)

There we have it, you now know how to install, set up, and use Jarvis like a pro. Jarvis is still young, and a lot of features are currently in the pipeline to be released soon. As these features are released, I will write new tutorials on how to use them.

GitHub: https://github.com/willptswan/jarvis

NPM: https://www.npmjs.com/package/@willptswan/jarvis

(Video) The deleted video that got faze jarvis banned (aimbotting) *MUST WATCH*

FAQs

What is the use of Jarvis? ›

Jarvis uses AI to increase validation coverage. Jarvis also uses AI to convert excel to SQL so that validation done in excel can be replicates to all records.

Is there a Jarvis app for PC? ›

Enhance your experience with the Jarvis desktop app for Mac and PC on WebCatalog. Run apps in distraction-free windows with many enhancements.

Is Jarvis free to use? ›

No, Jarvis does not offer a free plan. Learn more about Jarvis pricing.

Does Jarvis AI really work? ›

After using the tool for some of my work, I came to the conclusion that, sure, Jarvis is great if you are stuck with writer's block, but it isn't an absolute replacement for writers. Particularly, if you are writing articles that require a lot of research and critiques.

Can I use Jarvis on my phone? ›

This app is designed for Android smartphones and tablets. JARVIS AI is an artificial intelligence program that can recognize and respond to voice commands.

What programming language does Jarvis use? ›

Jarvis uses several artificial intelligence techniques, including natural language processing, speech recognition, face recognition, and reinforcement learning, written in Python, PHP and Objective C.

How to set up Jarvis? ›

How to Setup Jarvis / Hugging GPT in Linux
  1. Install git if you don't have it already. ...
  2. Clone the Jarvis repository from your home directory. ...
  3. Navigate to the Jarvis/server/configs folder. ...
  4. Edit the configuration files and enter your OpenAI API key and Hugging Face tokens where appropriate.
Apr 24, 2023

What does a Jarvis virus do? ›

JARVIS Virus, a weapon that changes the alignment of a portal from Resistance to Enlightened.

Why did Iron Man create Jarvis? ›

[TRIVIA NOTE: In the novelization of “Iron Man,” writer Peter David said that the J.A.R.V.I.S. acronym stood for “Just A Really Very Intelligent System.”] Perhaps fearing that having a sarcastic butler around would make Tony seem too much like Batman, the "Iron Man" filmmakers decided to make Jarvis into an A.I.

How does Jarvis become AI? ›

Creation. Tony Stark designed a natural language user interface program which he named J.A.R.V.I.S., after his late butler, Edwin Jarvis. Over the years, Stark improved and perfected the system, adding security protocols and eventually upgrading the U.I. into an A.I.

Is Jarvis a programming language? ›

JARVIS is a Voice-Based AI Assistant which is developed in Python Programming Language. It uses Different Technologies To Add New Unique Features. It can Automate Tasks with just One Voice Command. It is a Desktop Based AI Assistant.

Videos

1. Mazzy Star - Fade Into You (Official Music Video)
(Mazzy Star)
2. Wanda and Hawkeye vs Vision - Captain America: Civil War (2016) Movie CLIP HD
(TopMovieClips)
3. Make Your PC Like Tony Stark JARVIS Artificial Intelligence - Tricks Guru
(Tricks Guru)
4. Bruce Banner and Tony Stark put Jarvis Into Body - Avengers Age of Ultron (2015) Movie Clip HD Scene
(Legendary Movie Scenes)
5. I Built An EPIC Hidden Gaming Room In My House! *PS5*
(Zealous)
6. Fortnite - Bugha | Legends Never Die | (Official Video)
(Samtex)

References

Top Articles
Latest Posts
Article information

Author: Stevie Stamm

Last Updated: 09/13/2023

Views: 6461

Rating: 5 / 5 (80 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Stevie Stamm

Birthday: 1996-06-22

Address: Apt. 419 4200 Sipes Estate, East Delmerview, WY 05617

Phone: +342332224300

Job: Future Advertising Analyst

Hobby: Leather crafting, Puzzles, Leather crafting, scrapbook, Urban exploration, Cabaret, Skateboarding

Introduction: My name is Stevie Stamm, I am a colorful, sparkling, splendid, vast, open, hilarious, tender person who loves writing and wants to share my knowledge and understanding with you.