CLI-Bootcamp
Ideas on how to quickly learn to build command-line tools
Part 1-Bash
Week1: Using Linux
Week2: Using Bash
Week3: Building Bash Scripts
Week4: Composing File and Data Management Solutions with Linux
Part 2-Build CLI in Python
Challenges
Bash and ZSH Challenges
- Customize your
~/.bashrc
with at least one alias, function and variable.
- Build a Bash CLI tool that takes options
- Truncate a large file and randomly sample at the same time
- Write a find command and a locate command
- Install ohmzsh, what did you learn?
Python Challenges
Additional Thoughts on Challenge
- How tiny can you make your container (hint try alpine python)? What is the approach that shrinks the size?
- Can you lint your container with a linting tool like: hadolint? What about security scanning?
- Why would it be impressive to have a docker pull command for a CLI on your resume?
- Can you automatically build and push new containers in Github Actions? Hint...yes.
- Can you build a GPT-3 CLI tool? https://openai.com/blog/openai-api/
GPT 3:
Advanced Challenges
References