From 35bf45a81da20d782a8a654703eca14543e25def Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Fri, 11 Oct 2024 14:17:33 +0200 Subject: add CLI draft --- docs/get-started-cli.md | 22 ++++++++++++++++++++++ docs/get-started.md | 4 ++++ 2 files changed, 26 insertions(+) create mode 100644 docs/get-started-cli.md create mode 100644 docs/get-started.md (limited to 'docs') diff --git a/docs/get-started-cli.md b/docs/get-started-cli.md new file mode 100644 index 0000000..d78a9a5 --- /dev/null +++ b/docs/get-started-cli.md @@ -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 +``` diff --git a/docs/get-started.md b/docs/get-started.md new file mode 100644 index 0000000..af435b3 --- /dev/null +++ b/docs/get-started.md @@ -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) -- cgit v1.2.3