Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const navigation = [

{
title: 'CLI Applications',
href: '/docs/cli/cli',
href: '/docs/quick-start/cli',
desc: "Learn to build powerful command-line interface (CLI) applications using GoFr's app.NewCMD(), offering a robust framework for command-line tools."
},

Expand Down
7 changes: 6 additions & 1 deletion docs/cli/cli.md → docs/quick-start/cli/page.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

GoFr provides a simple way to build command-line applications using `app.NewCMD()`. This creates standalone CLI tools without starting an HTTP server.

## Configuration
To configure logging for CLI applications, set the following environment variable:
- `CMD_LOGS_FILE`: The file path where CLI logs will be written. If not set, logs are discarded.


## Getting Started

Create a basic CLI application with subcommands:
Expand Down Expand Up @@ -71,4 +76,4 @@ go build -o mycli
./mycli --help
```

For more details, see the [sample-cmd example](../../examples/sample-cmd).
For more details, see the [sample-cmd example](../../../examples/sample-cmd).