Skip to content

Commit 567385d

Browse files
committed
Refactor: Rename 'configure' command to 'init'
- Changed ConfigureCommand to InitCommand for better CLI convention - Updated command signature from 'configure' to 'init' - Follows standard pattern (git init, npm init, terraform init) - Updated all documentation references - Updated all test expectations - All 653 tests passing
1 parent e084711 commit 567385d

16 files changed

Lines changed: 29 additions & 29 deletions

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
# Install
2525
composer require stechstudio/keep
2626

27-
# Configure
28-
./vendor/bin/keep configure
27+
# Initialize
28+
./vendor/bin/keep init
2929

3030
# Interactive shell - the fastest way to work
3131
./vendor/bin/keep shell

docs/WEB_UI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ A: Yes, but each session gets its own token. Changes are not synchronized in rea
259259
A: Currently uses a dark theme. Light theme support planned for future release.
260260

261261
**Q: Can I export the UI settings?**
262-
A: Settings are stored in Keep's configuration files, not the UI. Use `keep configure` to manage.
262+
A: Settings are stored in Keep's configuration files, not the UI. Use `keep init` to manage.
263263

264264
## Changelog
265265

docs/commands/SERVER.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ The web UI does not create or modify any local files. All data is read from and
144144

145145
## Related Commands
146146

147-
- [`keep configure`](CONFIGURE.md) - Set up vaults before using UI
147+
- [`keep init`](INIT.md) - Set up vaults before using UI
148148
- [`keep list`](LIST.md) - CLI alternative to view secrets
149149
- [`keep export`](EXPORT.md) - CLI alternative for exporting
150150

docs/guide/cli/reference.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22

33
Complete reference for all Keep CLI commands with their options and usage examples.
44

5-
## `keep configure`
5+
## `keep init`
66

7-
Configure Keep settings and vault connections.
7+
Initialize Keep settings and vault connections.
88

99
| Option | Type | Default | Description |
1010
|--------|------|---------|-------------|
1111
| `--no-interaction` | boolean | `false` | Run without prompts using defaults |
1212

1313
**Examples:**
1414
```bash
15-
# Interactive configuration
16-
keep configure
15+
# Interactive initialization
16+
keep init
1717

18-
# Non-interactive configuration
19-
keep configure --no-interaction
18+
# Non-interactive initialization
19+
keep init --no-interaction
2020
```
2121

2222
## `keep vault:add`
@@ -124,7 +124,7 @@ keep verify
124124
**Common use cases:**
125125
```bash
126126
# Run after initial setup
127-
keep configure
127+
keep init
128128
keep vault:add
129129
keep verify
130130

@@ -160,7 +160,7 @@ keep info
160160
keep info
161161

162162
# Verify configuration after setup
163-
keep configure
163+
keep init
164164
keep info
165165

166166
# Debug path issues

docs/guide/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Navigate to your project and run:
66

77
```bash
8-
keep configure
8+
keep init
99
```
1010

1111
This interactive command will:

docs/guide/quick-start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Quick Start
22

3-
This guide gets you managing secrets with Keep in 5 minutes. We'll assume you've already run `keep configure` and set up your first vault (see [Configuration](./configuration) if you haven't).
3+
This guide gets you managing secrets with Keep in 5 minutes. We'll assume you've already run `keep init` and set up your first vault (see [Configuration](./configuration) if you haven't).
44

55
## Setting Your First Secret
66

docs/guide/shell/reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ Many commands become interactive when arguments are omitted:
421421
These commands are not available in the shell:
422422
- `import` - Use the CLI: `keep import file.env`
423423
- `push` / `pull` - Use the CLI for bulk operations
424-
- `configure` - Use the CLI: `keep configure`
424+
- `init` - Use the CLI: `keep init`
425425

426426
### Security Notes
427427
- The shell masks secret values by default using `****` or showing only first 4 characters

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ features:
3737

3838
```bash
3939
# Configure your project
40-
keep configure
40+
keep init
4141

4242
# Add a vault
4343
keep vault:add

src/Commands/BaseCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function handle(): int
3030
// Check if Keep is initialized (unless this command doesn't require it)
3131
if ($this->requiresInitialization() && ! Keep::isInitialized()) {
3232
error('Keep is not initialized in this directory.');
33-
note('Run: keep configure');
33+
note('Run: keep init');
3434

3535
return self::FAILURE;
3636
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414
use function Laravel\Prompts\note;
1515
use function Laravel\Prompts\text;
1616

17-
class ConfigureCommand extends BaseCommand
17+
class InitCommand extends BaseCommand
1818
{
1919
use ConfiguresVaults, ValidatesEnvs;
2020

21-
protected $signature = 'configure';
21+
protected $signature = 'init';
2222

23-
protected $description = 'Configure Keep settings for your project';
23+
protected $description = 'Initialize Keep settings for your project';
2424

2525
protected function requiresInitialization(): bool
2626
{
27-
return false; // configure command should work whether initialized or not
27+
return false; // init command should work whether initialized or not
2828
}
2929

3030
protected function process()

0 commit comments

Comments
 (0)