Skip to content

Commit ecd9e59

Browse files
committed
update readme.md
1 parent 983adb7 commit ecd9e59

File tree

1 file changed

+47
-12
lines changed

1 file changed

+47
-12
lines changed

readme.md

Lines changed: 47 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,48 @@
1-
# Directus helper
1+
_ _ _ _ _
2+
__| (_)_ _ ___ __| |_ _ _ ___ | |_ ___| |_ __ ___ _ _
3+
/ _` | | '_/ -_) _| _| || (_-< | ' \/ -_) | '_ \/ -_) '_|
4+
\__,_|_|_| \___\__|\__|\_,_/__/ |_||_\___|_| .__/\___|_|
5+
|_|
6+
## Description
7+
Directus Helper is a command-line tui utility designed to simplify the development workflow around Directus projects.
8+
It helps you manage multi-environment configurations, streamline migrations, organize monorepos with many extensions, and automate common development tasks such as building or watching extensions.
9+
10+
Whether you're working with multiple Directus instances (dev/stage/prod), maintaining a large repository, or simply want an easier way to sync configuration between environments, Directus Helper provides a consistent and developer-friendly toolset.
11+
12+
## What it is
13+
14+
* Directus Helper is a CLI tool that:
15+
* Stores and manages Directus environment credentials (tokens or login/password).
16+
* Supports configuration migration across environments (fields, flows, permissions, etc.).
17+
* Recognizes Directus monorepo projects and automates building and managing extensions.
18+
* Provides tools for developing extensions with automatic rebuild and project scaffolding.
219

320
## Install
421

22+
```bash
23+
npm install -g directus-helper
24+
```
25+
26+
## Run from source
27+
528
```bash
629
npm ci
7-
npm run build
8-
npm link
30+
npm run dev
31+
32+
# to run the package
33+
node ./dist/cli.js
934
```
1035

1136
## How it works?
12-
After helper instalation and first run you can observe a new file in your
37+
After you install and run the helper for the first time, a new configuration file is created:
1338
* macOS: ~/Library/Preferences/directus-helper-nodejs/.settings.json
1439
* Windows: %APPDATA%\directus-helper-nodejs\Config
1540
* Linux: ~/.config/directus-helper-nodejs (or $XDG_CONFIG_HOME/directus-helper-nodejs )
1641

17-
This config will hold tokens for your environments and settings for migration script
42+
This configuration file stores:
43+
* Environment tokens or credentials
44+
* Migration settings
45+
* Global helper preferences
1846

1947
### Schema of directus.helper.settings
2048
```js
@@ -40,11 +68,18 @@ zod.object({
4068
```
4169

4270
### What is an environment?
43-
In terms of helper - we call environment a combination of link and credentials for it (either token or login&password)
44-
Environments are heavely used for migration process.
71+
In the context of this helper, an environment is a Directus instance configuration consisting of:
72+
* link — URL of the Directus environment
73+
* token, or login + password
74+
Environments are essential for migration operations.
4575

4676
### What is a migration?
47-
Migration - is a process of transfering configuration of one environment (such as fields, flows, permissions) and transfering it to another environment
77+
A migration is the process of transferring configuration from one Directus environment to another.
78+
This may include:
79+
* Fields
80+
* Flows
81+
* ~~Permissions~~ (not yet*)
82+
It allows you to keep environments in sync
4883

4984
## Projects
5085
This helper allows manage monorepos that contains a lot of extensions. Helper will recognize the folder as a directus project if it contains file `.settings.json`
@@ -61,7 +96,7 @@ Options available in project folder:
6196

6297
## TODO
6398
- [x] Crossplatform for MacOs/Linux/Windows
64-
- [] Support permissions migration
65-
- [] Support full db migration
66-
- [] Generate github/gitlab pipelines
67-
- [x] Support all extension types
99+
- [x] Support all extensions types
100+
- [ ] Support permissions migration
101+
- [ ] Support full db migration
102+
- [ ] Generate github/gitlab pipelines

0 commit comments

Comments
 (0)