#

cli

Command-line interface usage and commands

ProgrammingNode.js Command Line Arguments with process.argv - Examples

Pass and access Node.js command line arguments with process.argv. Examples for positional args, path resolution, validation, and when to use minimist or yargs.

1 answer 5 views
ProgrammingJSON pretty-print in Shell Scripts - jq, python, php

Pretty-print JSON in shell scripts using jq, Python's json.tool, php or json_pp. One-line examples for bash, curl, NDJSON and safe in-place file updates.

1 answer 5 views
DevOpsGit commit: create a title and description from CLI

Create a Git commit with a separate title and body from the CLI. Use multiple -m flags, -F file input, or commit templates for consistent commit messages.

1 answer 1 view
DevOpsUpload 4GB Files to MinIO with mc cp: Fix Timeout Errors

Fix 'context deadline exceeded' when uploading large files (~4GB) to MinIO using mc cp. Tune multipart part-size (64-128MiB), parallelism, proxy timeouts (Nginx 30m), and server configs for reliable uploads.

1 answer 1 view
ProgrammingGraceful SIGINT Shutdown in Node.js CLI with Commander

Handle SIGINT gracefully in Node.js TypeScript CLI apps using Commander.js. Finish database updates, per-item calculations, flush stdout/stderr logs, and ensure shell prompt returns only after complete shutdown—no more lost logs or early prompts.

1 answer 1 view
ProgrammingSplit cli::array<Byte>^ in C++/CLI: First 16 Bytes + Remainder

Learn efficient methods to split a cli::array<Byte>^ in C++/CLI into the first 16 bytes and remaining bytes using Array::Copy, ArraySegment, or pin_ptr.

1 answer 1 view
ProgrammingRefactor C++/CLI Base64 Encoding in Visual Studio

Improve C++/CLI code for Base64 encoding in Visual Studio. Refactor repetitive code, enhance readability, and boost efficiency. Best practices included.

1 answer 1 view