- Published on
Optimize Command Line Usage with Amazon CodeWhisperer
Viblo: Tối ưu hoá việc sử dụng Command Line với Amazon CodeWhisperer
Medium: Optimize Command Line Usage with Amazon CodeWhisperer
Overview
As a developer, the use of command-line commands to work from environment configuration to program execution is no longer unusual. For some people, remembering commands isn't too hard, but using tools is also a way to support and increase performance.
I used to use Fig.
Fig helps users execute sentences faster with suggestions of sentences executed (and many other tasks). But I just got an e-mail from Fig about the shutdown, which is because the Fig team joined Amazon and created the Amazon CodeWhisperer for command line with core tasks from Fig and to use all the resources to concentrate on the CodeWisperer that's one of the reasons why Fig stopped working.
And to see what the CodeWhisperer has to do with it, let's find out about it below!
Learn and install CodeWhisperer?
Difference between Fig and CodeWhisperer
CodeWhisperer for command line provides the core features of Fig, including:
- Complete IDE-style syntax for over 500+ command-line tools (CLI).
- Translate natural language to Bash.
CodeWhisperer for command line is free for individual users and is designed to be faster, more reliable than Fig. They have many interesting features to be released in CodeWhisperer for command line in 2024, including:
- Linux Support
- Talk to Who
- Inline AI completions
- Autocomplete in SSH
- Private autocomplete
Note: CodeWhisperer for command line does not include features similar to Fig Scripts, Dotfiles, Plugins or Servers, and they do not plan to support these features in the near future either.
What's the CodeWhisperer?
With the Fig team's profound awareness of the impact AI has on developers, creating CodeWhisperer to replace Fig is understandable.
Amazon CodeWhisperer for command line is a code-writing tool using artificial intelligence. (AI). This tool increases efficiency and productivity for programmers by:
- Proposal Code/ Command Line
- Supports multiple programming languages
- Integrate with an integrated development environment (IDE)
- Accelerate software development: helps programmers focus more on software logic and architecture, rather than technical details.
- Improved code quality
Amazon CodeWhisperer for command line is a powerful and useful code-writing tool for command-line programmers. This tool helps you increase efficiency and productivity, minimize errors, and speed up software development.
You can find out more here
Setup
To install CodeWhisperer, follow the steps below:
- Step 1. Download CodeWhisperer for command line here CodeWhisperer only supports MAC @@
- Step 2. Authentication
- For the CodeWhisperer Individual user: Use the Builder ID to authenticate with CodeWisperer. You will receive the start URL of your AWS account.
- For CodeWhisperer Professional users: Use IAM Identity Center to authenticate with CodeWisperer. You will receive the start URL of your AWS account.
- Step 3. Follow the instructions to install the shell integration and grant access to macOS.
Supported command line environments
CodeWhisperer for command line integrates with the following environments:
- Operating systems: macOS
- Shells: bash, zsh, fish
- Terminal emulators: iTerm2, macOS terminal, Hyper, Alacritty, Kitty, wezTerm
- IDEs: VS Code terminal, Jetbrains terminals (except Fleet)
- CLIs: 500+ of the most popular CLIs such as git, aws, docker, npm, yarn
Verifying your download
After you download CodeWhisperer for command line, you can verify its code signature as follows:
codesign -v /Applications/CodeWhisperer.app
If there is no output, then the app's code signature is valid, and it has not been tampered with since it was signed.
Now you can access the CodeWhisperer and integrate it into the IDEs you want to use.
Conclusion
The creation of tools makes us work faster, more productive. Personally, I don't think it's too embarrassing not to remember all the orders.
Welcome to your installation, and take advantage of the great features of Amazon CodeWhisperer for command line
I am always looking for feedback on my writing, so please let me know what you think. ❤️