add CLI draft
This commit is contained in:
22
docs/get-started-cli.md
Normal file
22
docs/get-started-cli.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# Get started with the CLI
|
||||
|
||||
## Create a new project
|
||||
|
||||
Create a new folder for your project, `my-project`. Change into it, and set `AMCS_CONTENT` to the folder that should store your content.
|
||||
|
||||
```
|
||||
mkdir -p my-project
|
||||
cd my-project
|
||||
export ACMS_CONTENT=$PWD/content
|
||||
```
|
||||
|
||||
## Create a restaurant collection
|
||||
|
||||
```
|
||||
acms collection insert restaurant/1.json <<'EOF'
|
||||
{
|
||||
"name": "Biscotte Restaurant",
|
||||
"description": "Welcome to Biscotte restaurant! Restaurant Biscotte offers a cuisine based on fresh, quality products, often local, organic when possible, and always produced by passionate producers."
|
||||
}
|
||||
EOF
|
||||
```
|
||||
4
docs/get-started.md
Normal file
4
docs/get-started.md
Normal file
@@ -0,0 +1,4 @@
|
||||
# Get started
|
||||
|
||||
- [Get started with the CLI](./get-started-cli.md)
|
||||
- [Get started with the web interface](./get-started-web-interface.md)
|
||||
Reference in New Issue
Block a user