Add Metadata

sveltin add metadata

Add metadata to an existing resource.

Synopsis

Command used to add new metadata for your content to an existing resource.

Note: This command needs an existing resource created by running: sveltin new resource .

What is a “metadata” for Sveltin? Whatever you enter in the front-matter of your markdown content for which you want content grouped by it.

Example:

  1. You have already created some resource by running “sveltin new resource”
  2. run: sveltin add metadata category

Metadata Types:

  • single: 1:1 relationship (e.g. category)
  • list: 1:many relationship (e.g. tags)

Usage

sveltin new metadata [name] --to [resource] --as [single|list] [flags]

Aliases:

metadata, m

Flags

  -a, --as string   Type of the new metadata. (possible values: single or list)
  -h, --help        help for metadata
  -t, --to string   Name of the resource the new metadata is belongs to

SEE ALSO

Last updated: 06-Sep-2022

Apache 2.0 License @ 2021-present Sveltin.io and contributors .

The Sveltin logos are copyright © Mirco Veltri.