import { createCommand } from "../../../types.js";
import { databaseSubcommand } from "./database.js";
import { domainSubcommand } from "./domain.js";
import { keyvalueSubcommand } from "./keyvalue.js";
import { storageSubcommand } from "./storage.js";
import { getCommand } from "../../../command-prefix.js";
export const addCommand = createCommand({
    name: 'add',
    aliases: ['link'],
    description: 'Link existing cloud resources to the current project',
    tags: ['fast', 'requires-auth', 'requires-project'],
    examples: [
        {
            command: getCommand('project add database'),
            description: 'Link an existing database to the project',
        },
        {
            command: getCommand('project add storage'),
            description: 'Link an existing storage bucket to the project',
        },
        {
            command: getCommand('project add domain example.com'),
            description: 'Add a custom domain to the project',
        },
        {
            command: getCommand('project add database my-db'),
            description: 'Link a specific database by name',
        },
        {
            command: getCommand('project add storage my-bucket'),
            description: 'Link a specific storage bucket by name',
        },
        {
            command: getCommand('project add keyvalue'),
            description: 'Link a key-value namespace to the project',
        },
        {
            command: getCommand('project add kv production'),
            description: 'Link a specific key-value namespace by name',
        },
    ],
    subcommands: [databaseSubcommand, domainSubcommand, keyvalueSubcommand, storageSubcommand],
});
//# sourceMappingURL=index.js.map